In firebase, when we want to filter data we have 3 parameter to query data.
startAt
- For Start Point [can be used in conjunction with endAt
]
endAt
- For end point [can be used in conjunction with startAt
]
equalTo
- For specifying equal to [Used alone]
Example1: to retrieve all dinosaurs with a height greater than 3
curl 'https://dinosaur-facts.firebaseio.com/dinosaurs.json?orderBy="height"&startAt=3
Example2 : The following example retrieves all dinosaurs with a name starting with the letter a through m
curl 'https://dinosaur-facts.firebaseio.com/dinosaurs.json?orderBy="$key"&startAt="a"&endAt="m"
Question -
Is there any way where I can filter using notEqualTo
? or similar functionality.
curl 'https://dinosaur-facts.firebaseio.com/dinosaurs.json?orderBy="type"¬QualTo="small"
So that I can retrieve type big
and medium
dinos.
I am using firebase using REST APIs only. Another Question is posted which is related to using Firebase in Android