I have a collection like this:
[{ \"_id\": 1, \"OtherProperties\": 100 \"PersonInventory\": [{ \"FirstName\": \"Joe\", \"MiddleName\": \"Bob\",
I did some digging on the mongodb Jira pages, it looks like there isn't support for the variable $$ROOT, so the above queries are not supported.