Azure / azure-cosmosdb-node

We recently announced deprecation of JS v1 SDK and this repo. Starting September 2020 Microsoft will not provide support for this library. Existing applications using library will continue to work as-is. We strongly recommend upgrading to @azure/cosmos library.
https://github.com/Azure/azure-sdk-for-js
MIT License
141 stars 108 forks source link

QUESTION: How to specify unique keys using DocumentClient.createCollection #236

Closed rfigueroa-zz closed 5 years ago

rfigueroa-zz commented 6 years ago

On the Azure portal when creating a collection you are able to add unique keys. How can you do this using the Node sdk?

rfigueroa-zz commented 6 years ago

@christopheranderson is there an update?

arichiardi commented 6 years ago

I am interested too, reading this in the docs:

Unique keys are supported by the latest versions of the .NET and .NET Core SQL SDKs, and the MongoDB API. The Table API and Graph API do not support unique keys at this time.

Is there a plan to support the functionality in the node client as well?

southpolesteve commented 5 years ago

We have recently announced deprecation version 1.x of the Azure Cosmos JavaScript SDK. We will end support for the documentdb package and this repo on August 30, 2020. Please update to our new package @azure/cosmos as soon as possible. If you encounter any issues, you can raise them in the Azure central JS SDK repo. If something is preventing you from upgrading to the latest version of the SDK, you can always email me directly: stfaul@microsoft.com