Last active
August 29, 2015 14:17
-
-
Save waseem/f2769298075b8c31ad46 to your computer and use it in GitHub Desktop.
Querying nodes in firebase that have a named key under them.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"application": { | |
"companies": { | |
"firebase": { | |
"creation": { | |
"name": "Firebase Inc", | |
"location": "USA" | |
}, | |
"google": { | |
"creattion": { | |
"name": "Google Inc", | |
"location": "USA" | |
} | |
} | |
"facebook": { | |
}, | |
"apple": { | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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