title: How to expand hierarchical data with simple.odata.client
body: <p>In our data model we have hierarchical data. We have for example the following structure:</p>
  
  <pre><code>Product  : Category       (one to many)
  Category : CategoryType   (one to many)
  </code></pre>
  
  <p>If we want to have a certain Product's related categories and also each category's related categorytypes we can build this up with a url like this:</p>
  
  <pre><code>&lt;urlbase&gt;/Products(1)?$expand=Category($expand=CategoryType)
  </code></pre>
  
  <p>This works fine in the browser. The question is how this can be done in the simple.odata.client OData v4? We are trying this but not getting it to to work:</p>
  
  <pre><code>var client = new ODataClient(ConfigSettingsProvider.ODataBaseUri);
  var client
      .For&lt;Product&gt;()
      .Filter(p=&gt; p.Id == 1)
      .Expand(p =&gt; p.Categories)
      .Expand(c =&gt; c.CategoryTypes)
      .FindEntriesAsync();
  </code></pre>