Limited depth of returned data

Is it possible to limit the depth of data returned from a Firebase database?

For example, if I want to get some data from a parent object without waiting for all its children and children, can I indicate that I need only x levels of objects?

+4
source share
2 answers

Firebase does not yet have this feature.

We intend to add it, but so far you have no schedule.

+2
source

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

+1
source

All Articles