Is there a way to query this deeply in the Firebase REST API? -
i have data below. i'd query users have "c" – (true or otherwise).
repos/users.json?orderby=???
can pull off w/ rest api?
{ "repos": { "my_repo": { "tags": { "a": true, "b": true, "c": true, "d": true } }, "users": { "kevin": { "a": true, "c": true }, "bob": { "b": true, "c": true }, "alice": { "a": true, "d": true } } } }
you can query "users" values.
ref = new firebase("https://xxxx.firebaseio.com/repos/user/").orderbychild("c").equalsto("true");
the equalsto quoted in example, depending on how set in data. if string, need quotes, if not, adjust match dataset.
Comments
Post a Comment