I have the following structure in my database:
var pathFriend = "stuff/"+ userKey;
admin.database().ref(pathFriend).orderByChild("sale").equalTo(true).once("value", function(snapshotItem) {
snapshotItem.forEach(function(data) {
console.log("key = "+ data.key);
});
});
The question is how can I search by two fields with boolean values? Thanks.