且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Firestore数组包含查询未返回结果

更新时间:2023-02-05 15:51:41

您没有得到任何结果,因为数据库中的Workdesc属性的类型为String,而数组的类型为 not .看到引号了吗?如果需要数组类型的属性,则应采用这种方式.请参见followers属性,它是一个数组.尝试以相同的方式保存其他属性.

You aren't getting any results, because your Workdesc property in the database is of type String and not array. See the quotation marks? If you need a property of type array, then you should save that way. See followers property, is an array. Try to save the other property in the same way.