There seems to be a shallow option ...
{ "message": { "user": { "name": "Chris" }, "body": "Hello!" } } // A request to /message.json?shallow=true // would return the following: { "user": true, "body": true } // A request to /message/body.json?shallow=true // would simply return: "Hello!"
From : https://firebase.google.com/docs/database/rest/retrieve-data
source share