【发布时间】:2020-09-23 03:11:25
【问题描述】:
我正在使用查询查询 Firestore https://firestore.googleapis.com/v1/projects/myproject/databases/(default)/documents/mycollection
我正在关注 Json。有人可以帮助我如何根据 Rate 字段过滤我的查询。我正在编写以下查询,但它不起作用
{
"documents": [
{
"name": "0C45nDuozgQDOwEx5xHR",
"fields": {
"Clinic": {
"stringValue": "American Hospital"
},
"Rate": {
"stringValue": "140"
},
,`enter code here`
"createTime": "2020-06-28T20:32:18.776123Z",
"updateTime": "2020-07-22T21:19:24.061647Z"
},
{
"name": "Jm3tNVWmk4Q1pk87KL1m",
"fields": {
"Clinic": {
"stringValue": "Cleaveland clinic"
},
"Rate": {
"stringValue": "150"
},
"createTime": "2020-06-28T20:28:03.726819Z",
"updateTime": "2020-07-22T21:19:05.073019Z"
}
}
【问题讨论】:
-
看来你会想学习使用列表请求。 firebase.google.com/docs/firestore/reference/rest/v1/…
-
有人可以写一个示例 url 如何根据 Rate 字段过滤数据。
-
你好@ZaraKhan,欢迎来到 Stack Overflow。你能分享你用来获得那个输出的代码吗?此外,请查看并按照此 link 中的说明进行操作,以便社区更轻松地为您提供帮助。
-
嗨拉斐尔。没有代码我只是从邮递员或浏览器firestore.googleapis.com/v1/projects/myproject/databases/…调用休息服务@
标签: firebase rest google-cloud-firestore