我正在尝试将我的Zapier帐户链接到我的Firebase帐户,以便在集合中看到新条目时触发。
我一直对此有问题,我认为这是因为我使用的查询:
"orderBy": [{
"field": {
"fieldPath": "startDateInMilliseconds"
},
"direction": "DESCENDING"
}](这是文档中给出的默认示例,其中填写了my字段)。我认为问题源于fieldPath,因为我排序的集合的字段位于子类别"d“下。
Here's a picture of the data that works with the above query.

He's a picture of the data I'm working with, this one does not work.

Image with the start date field.
如果没有这个子类别,查询在测试中工作得很好,但是在这个类别中,查询返回一个错误,说它找不到任何文档。
有没有人知道如何更改查询以适应我的情况?谢谢。
发布于 2020-05-20 03:09:39
如果您试图查询d字段映射的属性,则需要使用点符号来查找它。
"orderBy": [{
"field": {
"fieldPath": "d.dateInMilliseconds"
},
"direction": "DESCENDING"
}]https://stackoverflow.com/questions/61878935
复制相似问题