I'd like to query the document DB with a query like this:
SELECT * FROM c
WHERE (
c.ReportType = 'MyReport'
And c.TenantId='testTenantId_111111'
And c._ts = (
SELECT Top 1 c._ts FROM c
WHERE (c.ReportType = 'MyReport' And c.TenantId='testTenantId_111111')
order by c._ts Desc
)
)
But it does not work.
Does document DB support this kind of query?