简体   繁体   English

如何在Cloud Firestore中使用startAt()和endAt()?

[英]How to use startAt() and endAt() in Cloud Firestore?

I read Dan McGrath's answer from this question in which he says that in Firestore there is an equivalent for the following line of code:我读过Dan McGrath从这个问题得到的答案,他说在Firestore中,以下代码行是等效的:

myRef.startAt(searchText).endAt(searchText + "\uf8ff");

This line works perfect in Firebase Realtime database but I'm trying to find the equivalent in Cloud Firestore for days.这行代码在Firebase Realtime数据库中运行完美,但是我想在Cloud Firestore中找到对应的代码几天。 Can anyone help me with that?有人可以帮我吗?

Thanks in advance!提前致谢!

I read Dan McGrath's answer from this question in which he says that in Firestore there is an equivalent for the following line of code:我读过Dan McGrath从这个问题得到的答案,他说在Firestore中,以下代码行是等效的:

myRef.startAt(searchText).endAt(searchText + "\uf8ff");

This line works perfect in Firebase Realtime database but I'm trying to find the equivalent in Cloud Firestore for days.这行代码在Firebase Realtime数据库中运行完美,但是我想在Cloud Firestore中找到对应的代码几天。 Can anyone help me with that?有人可以帮我吗?

Thanks in advance!提前致谢!

I read Dan McGrath's answer from this question in which he says that in Firestore there is an equivalent for the following line of code:我读过Dan McGrath从这个问题得到的答案,他说在Firestore中,以下代码行是等效的:

myRef.startAt(searchText).endAt(searchText + "\uf8ff");

This line works perfect in Firebase Realtime database but I'm trying to find the equivalent in Cloud Firestore for days.这行代码在Firebase Realtime数据库中运行完美,但是我想在Cloud Firestore中找到对应的代码几天。 Can anyone help me with that?有人可以帮我吗?

Thanks in advance!提前致谢!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 startAt() 和 endAt 方法搜索具有多个搜索键的 Firestore 集合 - How to search firestore collections with multiple search keys using startAt() and endAt methods firebase中“equalTo”和“startAt&endAt”的不同之处是什么?我应该使用“equalTo”或“startAt and endAt”? - what is the different betwen “equalTo” and “startAt & endAt” in firebase and when i should use “equalTo” or “startAt and endAt”? 如何同时对不同字段使用 whereGreaterThanOrEqualTo() 和对不同字段使用 startAt() endAt() - How to use whereGreaterThanOrEqualTo() for different field and startAt() endAt() for different field at the same time Android Firebase-是否可以在startAt()和endAt()之间使用limitToFirst()/ limitToLast() - Android Firebase - Is it possible to use limitToFirst()/limitToLast() in between startAt() and endAt() firebase startAt()endAt()方法 - firebase startAt() endAt() methods 如何从 Firebase Android Query 中的 StartAt 特定位置和 EndAt 特定位置获取值 - How to get value from StartAt specifirc position and EndAt specific position in Firebase Android Query 如何将另一个孩子放入 startAt 和 endAt,我试图将 orderbychild 放入但它失败了 - How to put another child in startAt and endAt, im trying to put orderbychild but it failed startAt() 和 endAt() 上的 Firebase orderByChild 返回错误结果 - Firebase orderByChild on startAt() and endAt() return wrong results Firebase 实时查询 startAt 和 endAt 在联合财产上没有按预期工作 - Firebase realtime query startAt and endAt not working as intended on a joint property 我使用 startAt 和 endAt 来获取范围数据,但我需要在 startAt 内的另一个孩子中获取数据 - i've using startAt and endAt for getting range data, but i need to take data in another child inside the startAt
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM