Firestore get documents where value not in array?

后端 未结 4 934
無奈伤痛
無奈伤痛 2020-11-28 15:02

Is there a way to get all documents which array field does not contain one or more values, now there is \"array-contains\" but is there something like \"array-not-contains\"

4条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 15:32

    I don't think that is possible at the moment. I would try looking at this blog post for reference.

    better arrays in cloud firestore

    You might need to convert your array to an object so that you can query by (property === false)

提交回复
热议问题