Firestore: how to perform a query with inequality / not equals

后端 未结 7 1679
南笙
南笙 2020-11-22 05:05

I want select from Firestore collection just articles written NOT by me.
Is it really so hard?

Every article has field "owner_uid".

7条回答
  •  再見小時候
    2020-11-22 05:54

    let query = docRef.where('role','>',user_role).where('role','<',user_role).get()
    

    This is not functioning as the "not equal" operation in firestore with string values

提交回复
热议问题