function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
A_Li_NA_Li_N 

SOQL Trees

I was wondering how to go about grabbing all data from an entire object tree:
Patient -> Test -> TestResult
Each step is a Master/Detail to the previous and I want to be able to get a patient and have it populate all of its tests as well as each tests' results.  

I am aware that SOQL only allows a single parent-child selection and am just wondering how to go about getting grandchildren populated.

 

Thank you for any help!