首页 > 解决方案 > 是否有任何选项可以查找文本是否存在于 firestore 的任一字段中

问题描述

请帮忙!!!!

我使用firebase admin,在我的情况下,我在多个字段中搜索一个值,无法弄清楚如何起草相同的查询。

预期的:

db.collection("user")
.where("name, comments", "in", "Jack" )
.get()

(或者)

db.collection("user")
.where("name, comments", "==", "Jack" )
.get()

但是,不幸的是我找不到执行这种情况的解决方案。

标签: javascriptnode.jsfirebasegoogle-cloud-firestore

解决方案


推荐阅读