I just want to get user post by user email in all of posts. How can I get user email? If I have to change my query let me know.

Here is my code

```
  const getUserPosts = db
    .collection('posts')
    .doc()
    .collection('posts')
    .where('email', '==', user.email)
    .orderBy('timestamp', 'desc');

```

`

[![enter image description here](https://i.stack.imgur.com/bG6Yg.png)](https://i.stack.imgur.com/bG6Yg.png)

[![enter image description here](https://i.stack.imgur.com/GYDHD.png)](https://i.stack.imgur.com/GYDHD.png)

this is my Firebase posts.