Concatenate Firebase DB Calls
I have a Firebase Cloud Function where I am having to get more data based on an ID provided, see code below:- return admin.firestore().collection('companies').doc(snap.data().compa
Solution 1:
You can't query two different collections at the same time. You either have to perform multiple queries, or join your data ahead of time into a single collection to query that contains all the data. This is called "denormalization", and is common in NoSQL databases that have no SQL-like join operations.
Post a Comment for "Concatenate Firebase DB Calls"