javascript - 是否有任何选项可以查找文本是否存在于 firestore 的任一字段中
问题描述
请帮忙!!!!
我使用firebase admin,在我的情况下,我在多个字段中搜索一个值,无法弄清楚如何起草相同的查询。
预期的:
db.collection("user")
.where("name, comments", "in", "Jack" )
.get()
(或者)
db.collection("user")
.where("name, comments", "==", "Jack" )
.get()
但是,不幸的是我找不到执行这种情况的解决方案。
解决方案
推荐阅读
- java - Java IO 中的“while (-1 != (len = in.read(b)))”和“while ((len = in.read(b)) > 0)”有什么区别?
- css - 缩放导致奇怪的反弹运动
- arrays - “数组中的模棱两可的类型名称‘索引’”斯威夫特
- php - 如何用 Laravel 重写记录集中的值?
- java - JAVA StringJoiner 线程安全吗?
- php - php - 日期函数返回错误的日期名称
- docker - go dep 不在 docker-compose 上运行
- elasticsearch - 如何解决 elastalert 中的“连接到 SMTP 主机时出错”?
- javascript - 如果使用 jQuery 的子列表处于活动状态,则侧边栏列表会展开
- excel - VBA 中用于访问 DB 的 CurrentDb 函数的变量未定义错误