云Firestore数组\u包含查询运算符

2024-10-02 00:44:02 发布

您现在位置:Python中文网/ 问答频道 /正文

我想查询一个基于子串匹配的cloudfirestore数据库。关于documentation,可以用array_contains运算符来完成。在

> The where() method takes three parameters: a field to filter on, a
> comparison operation, and a value. The comparison can be <, <=, ==, >,
> >=, or array_contains

但是,当我尝试使用它时,我得到了以下错误:

^{2}$

在这一点上,我不知道操作符的格式应该不同,文档已经过时或者我只是做错了。如果有人能告诉我正确的解决方法,我将不胜感激。在


Tags: the数据库fielddocumentation运算符wherearraymethod

热门问题