Hello, I’m tired of trying,
Problem: I have Team object with relation to TeamLocation object (one-to-many)
now i want to get all available teamLocations in team as below with teamLocations subfields.
const Team = Parse.Object.extend('team'); const Location = Parse.Object.extend('teamLocation'); const locationQuery = await new Parse.Query(Location).findAll(); const teamQuery = await new Parse.Query(Team).equalTo('objectId',data.params.teamId); await teamQuery.equalTo('locations', locationQuery).findAll(); console.log(teamQuery.includeAll()); console.log(teamQuery._where);
result of console.log()
The result is [Objects] how to get to the data of such an object, because I would like to filter the list of teamLocations that belong to a given team.