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

后端 未结 7 1662
南笙
南笙 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:59

    You can filter the array of objects within the javascript code.

    var data=[Object,Object,Object] // this is your object array
    var newArray = data.filter(function(el) {
       return el.gender != 'Male';
    });
    

提交回复
热议问题