I\'m playing around on https://www.documentdb.com/sql/demo, which allows me to query against sample documents that look like:
{ \"id\": \"19015\", \"desc
Note that this is a workaround that works fine.
SELECT c.id FROM c JOIN a in c.companies where a.id = '{id}'
In Linq this would be
x => x.companies.Any(z => z.id == id)