asked 110k views
4 votes
A developer writes a SOQL query to find child records for a specific parent. How many levels can be returned in a single query?

1 Answer

3 votes

Answer:

One.

Step-by-step explanation:

In this case, when a developer writes a SOQL query in order to find to find child records for a specific parent, one search will return only one child. One level down i.e., from parent to child, or five levels up i.e., from child to parent. Note that SOQL statements will not return relationships that are greater than one level apart from the root entity object.

Related questions

asked Feb 2, 2024 142k views
Takachi asked Feb 2, 2024
by Takachi
8.0k points
1 answer
2 votes
142k views