Is the request data that is not equal to the specified condition possible?

By purchasing a list of users for my list (android), I used the firebaselistadapter to backup my list, I want to show user data, except mine. Like sql query Select something from usertable, where id! = Userid;

I want to get all other user data,

+6
android firebase firebase-database
source share
2 answers

Firebase currently offers only a way to add nodes based on the presence of a specific value. You cannot exclude nodes depending on the availability of a value.

Update (20160828): Today I wrote a related answer that shows how to determine the absence of a property .

+8
source share

I have the same problem using angularfire and geofire. I am looking for business prospects in a radius and trying to create leadership only for new prospects, which means to exclude any existing account with an existing relationship. To do this, I need to open firebaseObject for each key returned by geofire, and after $ loaded () check the value of _.isNull (loadedFirebaseObject. $ Value). The lodash _.isNull () function returns null if the firebaseObject path does not exist (perspective) or undefined if it exists (not perspective, but an existing account).

Is there a better way to do this?

+1
source share

All Articles