Context: Below is the screenshot of my collection and document in Firebase Firestore. Basically, every transaction document has its own field and a chat collection inside of it.
What I need: My goal is to query the document with a specific handler_id and to access the chat collection inside of it.
What's happening: This query only returns the transaction field
db.collection("transaction").where("handler_id", "==", 3)
How can I include the chat collection in the queried document? Do you have any suggestion on how I can structure my data more efficiently?
