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.

User Michael Radionov
by
4.3k points