let firstRef = db.doc('/myCollection/${someID}/someData/${someDataId}');
let secondRef = firstRef.collection('nextCollection').doc(anotherId);
let firstQuery = secondRef.collection('finalCollection').where('completed', '==', false);
// Working, but slow, Promise.All code
// let p0 = firstRef.get();
// let p1 = secondRef.get();
// let p2 = firstQuery.get();
// return Promise.all ([p0, p1, p2]).then(response => {
return db.getAll(firstRef, secondRef, firstQuery).then(response => {
Error: Argument at index 2 is not a valid DocumentReference. at Object.exports.(anonymous function) [as isDocumentReference] (/user_code/node_modules/firebase-admin/node_modules/@google-cloud/firestore/src/validate.js:86:15) at Firestore.getAll (/user_code/node_modules/firebase-admin/node_modules/@google-cloud/firestore/src/index.js:556:16) at /user_code/myCode.js:172:15 at Object.update (/user_code/myCode.js:147:87) at someRef.get.then.someSnap (/user_code/myFunction.js:91:31) at process._tickDomainCallback (internal/process/next_tick.js:135:7)
Dolphin ONE Communications
sales: +44 20 3375 4000
support: +44 20 3375 4 247
...or visit http://www.dolphinone.net--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/dfc0d1ec-cf60-4f20-8df1-c763d422798a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/4fbfa9a4-8fb2-4c83-b288-96b555d7f9ff%40googlegroups.com.