Hi,
I have UserId as a column in Users table. I am trying to get user object based on UserId in angularjs.
I tried
var dataQuery = new Backendless.DataQuery();
dataQuery.condition = "UserId = "+userId;
Backendless.Persistence.of( ‘Users’ ).find(dataQuery);
It didn’t work,then tried
Backendless.Data.of( Backendless.User);
I got this output
{“className”:“Users”,“restUrl”:“https://api.backendless.com/v1/data/Users”}
not the user object. Please could anybody help me.