title: Retrieve the entire file tree from OneDrive JS API
body: <p>I'm trying to pull down the entire file tree from the OneDrive API, without having to manually crawl through it (for offline browsing), but I can't seem to find the right params and the documentation doesn't seem to help much.</p>
  
  <p>Right now, after authorizing with the OD API, I send a request like this <code>[...]/drive/root?select=id,name,size,file,folder,photo,@microsoft.graph.downloadUrl&amp;expand=children&amp;access_token=" + token</code></p>
  
  <p>The response only brings back the root directory and its children, but doesn't expand from there.</p>
  
  <p>How can I request the entire file tree without having to recurse based on whether a dir has children?</p>