First you need to request the user depending on the name "ABC". Then, in the callback of this request, execute the request in your company table using the objectId returned from the user request. Something like that:
var userQuery = Parse.Query('_User'); var companyQuery = Parse.Query('Company'); userQuery.equalTo('name', 'ABC'); userQuery.find({ success: function(user) { var userPointer = { __type: 'Pointer', className: '_User', objectId: user.id } companyQuery.equalTo('user', userPointer); companyQuery.find({ success: function(company) {
jeffdill2
source share