Azure / azure-sdk-for-js

This repository is for active development of the Azure SDK for JavaScript (NodeJS & Browser). For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/javascript/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-js.
MIT License
1.98k stars 1.15k forks source link

[@azure/cosmos] Add support for objects, array, null in order by queries #30122

Open amanrao23 opened 2 weeks ago

amanrao23 commented 2 weeks ago

Package name: @azure/cosmos

Description: Currently SDK throws an error if order by is performed on an object/array/ null field or cross type fields. Add support to support these types.

StefanReininger commented 1 week ago

Please add support for type "object" in the OrderByDocumentProducerComparator. We deserialize date strings to date objects via monkey patching of JSON.parse(). This causes problems in case the CosmosDB client libaray starts to order the documents on the client.