Recursively query for all linked documents in CosmosDB
<p>We've built a Document schema where job documents are uniquely identified by an Id property, and represent their link to a parent by a ParentJobId property. 
For example:</p>

<pre><code>{
  "Type": "Request",
  "StateName": "Success",
  "id": "4365b7ec-6eee-468a-94f6-ab65d6434611",
  "ParentJobId": null
},
{
  "Type": "Machine",
  "StateName": "ChildJobFailed",
  "id": "27040208-add5-97e4-6bd2-d991de73c9b5",
  "ParentJobId": "4365b7ec-6eee-468a-94f6-ab65d6434611"
},
{
  "Type": "Application",
  "StateName": "Error",
  "id": "7ef36990-c321-81dd-a0c7-3b04fd64c86f",
  "ParentJobId": "27040208-add5-97e4-6bd2-d991de73c9b5"
}
</code></pre>

<p>How can I query for all documents that are related to the root parent job? </p>