Skip to content

Instantly share code, notes, and snippets.

@waseem
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waseem/f2769298075b8c31ad46 to your computer and use it in GitHub Desktop.
Save waseem/f2769298075b8c31ad46 to your computer and use it in GitHub Desktop.
Querying nodes in firebase that have a named key under them.
"application": {
"companies": {
"firebase": {
"creation": {
"name": "Firebase Inc",
"location": "USA"
},
"google": {
"creattion": {
"name": "Google Inc",
"location": "USA"
}
}
"facebook": {
},
"apple": {
}
}
}
}
In above data structure, we have some companies. A few of them(google and firebase) have key 'creation' under them. Facebook and Apple however do not have 'creation' key under them.
1. How do I query companies that have 'creation' key under them, no matter what its value is?
2. How do I query companies that do not have 'creation' key under them?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment