Any ideas how to query for all the children and the children of the children in a single query?
Update
It seems like a simple question. I d
I think you have the right idea in your "update". Treat Drive as flat, make calls to list everything, and generate your own tree from that.
I'm trying to do the same in PHP. My solution is:
rejecting all the elements that not contain the id of my specific folder in its parents id list.
Don't worry, it's just one Google APIs call. The rest of the job is local.