Relations query from REST to Js

Hello, I would like to run this get into js:
https://api.backendless.com/v1/data/Users/F48AB8AD-E361-17A2-FF21-836C212A0300?loadRelations=containers.images
but in can’t in js, how do i fix’?.


 var query = new Backendless.DataQuery(); 
 query.options = {relations:["containers", "containers.images" ]};
 var dataStore = Backendless.Data.of( Backendless.User ).findById( userObjectId ).find(query);


thanks
regards
Riccardo

Hi Riccardo,
Please, try to do next

var query = new Backendless.DataQuery();

query.options = {relations:["containers", "containers.images" ]};
query.condition = "objectId = '"+userObjectId+"'";

var dataStore = Backendless.Data.of( Backendless.User ).find(query);

Regards Ilya

Thank you very Much Ilya!!

regards

Riccardo