0
votes

How do I query on a property that contains a '-' symbol.

Specifically I want to perform this query:

SELECT * FROM c.inside.abs-humid

But this gives me an error.

Querying on properties without dash is working perfectly fine, how do i do this?

1

1 Answers

8
votes

DocumentDB uses JSON notation for escaping property names. Try:

SELECT * FROM c.inside["abs-humid"]