I have two collections in firestore: users
and reports
.
Users
- uid ( this uid is from firebase auth, required field )
- email ( this is not required field, as i am using social media auth )
- firstname
- last name
Reports
- uid (this uid is from firebase auth, required field, added when user add this report)
- isCompleted ( bollean )
- other fields
I want to get all reports, firstname and lastname of users who isCompleted is false.
Query
firebase
.firestore()
.collection("reports")
.where("isCompleted", "==", false)
.get()
.then()
.catch()
Problem
Using this query i can get all reports whoes isCompleted is false but how can i get firstname and lastname of user who has created this report using uid