Firebase管理员查询:文档ID()在ID数组中的集合

4

这个查询适用于 Web Firebase SDK:

firestore.collection("recipes").where(firebase.firestore.FieldValue.documentId(), 'in', ['recipe12','recipe17']).get()

然而,在我的使用'firebase-admin'的云函数中,我遇到了这个错误:

错误:firebase.firestore.FieldValue.documentId()的对应值必须是字符串或DocumentReference。


2
在过去的几周中,有几个关于同一问题的SO问题被创建。您可以直接联系Firebase支持团队,并提供所有相关细节: https://firebase.google.com/support/ - Renaud Tarnec
被创建... - Renaud Tarnec
我也遇到了这个问题。我在这里提交了它:https://github.com/googleapis/nodejs-firestore/issues/990 - xaphod
1个回答

3

抱歉:const FieldPath = firebase.firestore.FieldValue - Damien Romito

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接