腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
Firestore
查询
在
documentId
中
javascript
、
google-cloud-firestore
有没有可能做这样的事情
firestore
.doc(`cities`).where('
documentId
', 'in', ['123', '456']) 其中
documentId
是每个城市的“主键”
浏览 6
提问于2020-04-14
得票数 0
回答已采纳
2
回答
按ID
查询
Firebase
Firestore
文档
firebase
、
google-cloud-firestore
正如我从“Cloud
Firestore
Data Model”指南中得到的那样,“每个文档都由一个名称标识。”是否可以通过文档标识符(即名称或ID)
查询
集合?例如,集合"Things“
中
的文档具有in : 0、1、2等:是否可以
查询
it小于100的单据?
浏览 1
提问于2018-01-27
得票数 17
回答已采纳
1
回答
按文档Id和其他属性进行
Firestore
查询
javascript
、
firebase
、
google-cloud-firestore
我想知道是否可以使用文档的Id和另一个属性执行以下
查询
。await
firestore
.doc(props.organizationId) .where('members', 'array-contains
浏览 16
提问于2021-10-04
得票数 0
回答已采纳
3
回答
在
Firestore
查询
中
按不同字段使用Where和Order
javascript
、
reactjs
、
firebase
、
google-cloud-firestore
我有一个名为channels的
Firestore
集合,我想获得基于it数组的通道列表并按createdAt字段对其进行排序,这是我的函数: collection(db, "channels"), "F0mnR5rNdhwSLPZ57pTP只有当我orderBy
documentId
()时,它才能起作用
浏览 3
提问于2021-11-29
得票数 4
回答已采纳
1
回答
获取文档列表的Firebase
firebase
、
performance
、
google-cloud-firestore
在
Firestore
中
,如果我有20个文档I的列表,那么获取所有这些文档的最佳方法是什么? 例如,我正在考虑使用类似安哥拉人之类的东西进行搜索,并从中获得一份it列表。
浏览 3
提问于2022-06-29
得票数 0
3
回答
在
各种
查询
中
如何使用文档id作为字段
android
、
firebase
、
google-cloud-firestore
在这个页面上db.collection('books').where(firebase.
firestore
.FieldPath.
documentId
我试着用但这不起作用 编辑:我不想用db.collectio
浏览 4
提问于2020-10-03
得票数 0
回答已采纳
1
回答
建立动态的条件消防站
javascript
、
firebase
、
google-cloud-firestore
默认的
查询
方法很复杂。我试图
在
它周围创建一个包装器,它将基于字段传递给它的子句附加到其中。import { collection, getDocs, getFirestore, query, conditions } from "firebase/
firestore
"; const db当id
在
何处传递时,它不会返回结果。
浏览 3
提问于2022-04-19
得票数 1
回答已采纳
1
回答
如何在防火墙
查询
中
筛选出某些文档
javascript
、
firebase
、
google-cloud-firestore
我想在我的社交应用
中
实现一个朋友搜索功能。为此,我试图
在
DB的users集合
中
查询
每个用户的文档,但是它应该排除一些特定的文档,比如当前用户已经是好友的用户或请求挂起的用户。是否可以通过
在
Firestore
中
传递那些文档引用ID来
查询
所有用户文档,而不包括特定的文档。 如果不是,有人能说出一种方法来构造数据以便我可以实现这个功能。谢谢。
浏览 4
提问于2021-06-22
得票数 1
回答已采纳
3
回答
文档id加上属性值的Firebase
查询
javascript
、
firebase
、
google-cloud-firestore
我对Firebase完全陌生,也许我只是无法搜索正确的关键字,但我想做的是:firebase.
firestore
().collection('blog-posts').doc(id).get() 然后,稍后检查客户端上的属性:
浏览 4
提问于2020-11-19
得票数 0
回答已采纳
2
回答
Firestore
删除文档和引用该文档的所有文档
firebase
、
dart
、
flutter
、
google-cloud-firestore
另一个问题:如何
查询
所有帖子并“加入”用户信息。如下所示: .collection("posts") .snapshots(); // I want to join the userInformation 那么,这些嵌套
查询
是否计入api限制?
浏览 19
提问于2018-08-28
得票数 1
1
回答
如何筛选具有文档ids的流?
firebase
、
flutter
、
dart
、
google-cloud-firestore
如何使用user/uid/usergroups
中
的文档ID筛选groups/集合
中
的文档?我想用存储
在
user/uid/usergroups
中
的文档in筛选groups/,以便只向用户显示存储在他的用户配置文件
中
的组。 我没有收到此代码的错误消息,但我没有看到任何组...
浏览 0
提问于2020-05-10
得票数 0
1
回答
Firebase,通过文档ID列表
查询
文档列表。
firebase
、
google-cloud-firestore
如果我们想通过1文档的ID
查询
它,我们可以这样做: .
firestore
() .doc("
documentId
") .then((docRef) => { console.log(docRef.data()) })如何
查询
给定ID列表的一组文档,例如: var list_of_ids = ["<em
浏览 0
提问于2021-09-16
得票数 0
回答已采纳
1
回答
Firebase管理
查询
: ids数组
中
的
documentId
()集合
node.js
、
firebase
、
google-cloud-firestore
、
google-cloud-functions
、
firebase-admin
此
查询
适用于Web Firebase SDK:但是
在
我的云函数
中
,使用了“firebase-admin”,我得到了以下错误: 错误: firebase.
firest
浏览 5
提问于2020-01-31
得票数 4
1
回答
如何仅从特定父集合
查询
特定id的子集合?
firebase
、
google-cloud-firestore
published/ /任务published/ /测验quests和quizzes也被标记,这些标记被复制到已发布的文档
中
。因此,所有已发布的文档都有一个tags字段(字符串数组)。我想
查询
与给定标记相关的所有已发布的任务。show that I want to query only the published .where( firebase.
firestore
.FieldPath.
d
浏览 3
提问于2020-02-06
得票数 1
回答已采纳
1
回答
无法从集合
中
删除文档
angular
、
typescript
、
firebase
、
google-cloud-firestore
、
product
I更新了用于构造的防火墙映像: return ( this.
firestore
如果不能到达
documentId
函数添加产品时自动生成的this.
firestore
.createId();,则无法达到该参数。** async deleted(uniqueID: strin
浏览 3
提问于2020-08-12
得票数 0
回答已采纳
1
回答
似乎无法获取包含子集合的文档
firebase
、
go
、
google-cloud-firestore
这棵树看起来像/TimeEntries/2018/2018-10/2018-10-22/Events return} 我
在
文
浏览 0
提问于2018-10-31
得票数 1
2
回答
使用snapshotChanges()
中
的where条件参考doc
firebase
、
google-cloud-firestore
、
angularfire
我想向它添加where条件,并只从collection
中
获取1 doc的数据。下面是我的代码: .where(document id , "==" , "1") /
浏览 1
提问于2020-05-02
得票数 1
回答已采纳
1
回答
如何为firebase集合
中
的文档标题设置实时监听程序- python
python
、
firebase
、
google-cloud-firestore
u'==', u'CA') query_watch = col_query.on_snapshot(on_snapshot) (标题不在文档
中
)
浏览 0
提问于2019-06-20
得票数 1
3
回答
获取按文档Id排序的数据,
在
Firestore
中
降序
android
、
firebase
、
google-cloud-firestore
我希望从由
documentId
按降序排序的
Firestore
中
获取数据。当我打电话: .orderBy(FieldPath.
documentId
(), Query.Direction.DESCENDING).addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {...}); FAILED_PRECONDITION:<e
浏览 3
提问于2017-11-22
得票数 19
1
回答
如何在
firestore
子集合中选择已过某个日期的文档?
javascript
、
firebase
、
google-cloud-firestore
、
momentjs
下面是一个例子:merchants/a9sd7f692934/bookings/25-07-2020 (1)
在
我的'where‘函数
中
,如何定义文档的名称?的所有文档,下面是我正在尝试但不知道如何继续的文档 //currentDate = 20-07-2020 //typeof String .
firestore
浏览 14
提问于2020-07-21
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
在Navicat中如何新建数据库和表并做查询
配置指南:信息类型IT2011的字段在InfoSetQuery中不能作为查询选择条件,为什么?
充分利用VBA,一键完成在多个EXCEL工作表中的批量大数据查询
骑上我心爱的小摩托,再挂上AI摄像头,去认识一下全城的垃圾!
75 在几万条数据中查询指定产品对应的销量前5名并加上产品名称和数量
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券