Hi Parse Community,
I’m working with a nested class structure and need help crafting an efficient query
Schema Structure:
Property
class → has pointer toProject
Project
class → has pointer toDeveloper
andProjectStatus
What I Need:
I want to filter Property
objects based on:
ProjectStatus
of the related Project- Specific
Developer
of the related Project
Current Approach:
const developerQuery = new Parse.Query(‘Developer’);
developerQuery.equalTo(‘objectId’, developerId);
const projectQuery = new Parse.Query(‘Project’);
projectQuery.matchesQuery(‘developer’, developerQuery);
const propertyQuery = new Parse.Query(‘Property’);
propertyQuery.matchesQuery(‘project’, projectQuery);
My Questions:
- Is this the most efficient approach for deep nested filtering?
- Should I use **aggregation pipelines instead (I’m using MongoDB)?