Efficient Query for Nested Pointer Filtering

@7ala mousa
Thu, 21 Aug 2025 14:30:17 +0000

Hi Parse Community,

I’m working with a nested class structure and need help crafting an efficient query

Schema Structure:

Property class → has pointer to Project

Project class → has pointer to Developer and ProjectStatus

What I Need:

I want to filter Property objects based on:

1. ProjectStatus of the related Project

2. 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:

1. Is this the most efficient approach for deep nested filtering?

2. Should I use **aggregation pipelines instead (I’m using MongoDB)?