I'm working on an app and I would like to query Firestore sub document. Let me explain further.
- I have a collection of documents where cars are stored, each document has a particular car with description.
- In each of those documents above, I av a sub collection called
user_data
which have it's own document where a particular userid of the user who add the car to his wishlist is stored.
Now I want to get the document of cars if a userid is present in its sub collection. In short, I want to get the wishlist of a particular user. I'm using streambuilder with listviewbuilder but the problem is how do I perform this query?
Or is there any simpler way of doing this?