How to query a field of type "Object" in parsing.

I have a Parse.User

column type object named accessibility with two fields status

and timestamp

how would I query Parse.User

to find the ones with status

busy

?

For example:

var query = new Parse.Query(Parse.User);
query.equalTo('availability', {status: 'busy'});
query.find()...

      

I expect it might work, but it doesn't. Please note that the field is availability

not differentParse.Object

+3


source to share


1 answer


Try using dot notation for multi-level queries:



query.equalTo('availability.status', 'busy');

      

+3


source







All Articles