const q = query(collection(db, "products"), where(documentId(), 'in', listOfIds))
const querySnapshot = await getDocs(q);
I am trying to do a query in a collection where their documentId exists in a list of ids, but I got an error:
Uncaught (in promise) FirebaseError: Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: a custom rf object.
not sure if it's relevant, but my firebase-admin version is 11.8.0
If querying documentId in a list is not supported, what's the best workaround to filter documents in a collection where their documentId exists in another collection?