Created
September 10, 2016 19:56
-
-
Save yogieputra8/098e760f4cfafd9a3c09647564673f05 to your computer and use it in GitHub Desktop.
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
var db = firebase.database(); | |
var ref = db.ref("students"); | |
ref.orderByChild("city").equalTo("san_fransisco").on("value", function(snapshot) { | |
ref.orderByChild("age").equalTo(17).on("value", function(snapshot) { | |
console.log(snapshot.val()); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment