Order By not working in Azure Web Document Explorer

筅森魡賤 提交于 2019-12-12 16:52:48

问题


I am trying to query documentdb inside the Azure Web Document Explorer. The problem is Order By doesn't seem to work anymore.

For instance the following query:

SELECT * FROM c
WHERE c.type="myType" ORDER BY c.createdDate 

When queried I get a red alert stating:

Failed to get documents. Please try again.

If I remove Order By it works fine. Any idea why it doesn't work anymore to query with Order By?


回答1:


Any idea why it doesn't work anymore to query with Order By?

Order By can be specified only against a property, either numeric or String when it is range indexed with the Maximum Precision (-1). More detail please refer to document

You also cannot perform the following:

Order By with internal string properties like id, _rid, and _self (coming soon).

Order By with properties derived from the result of an intra-document join (coming soon).

Order By multiple properties (coming soon).

Order By with queries on databases, collections, users, permissions or attachments (coming soon).

Order By with computed properties e.g. the result of an expression or a UDF/built-in function



来源:https://stackoverflow.com/questions/43521926/order-by-not-working-in-azure-web-document-explorer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!