PlagueHO / CosmosDB

PowerShell Module for working with Azure Cosmos DB databases, collections, documents, attachments, offers, users, permissions, triggers, stored procedures and user defined functions.
http://dscottraynsford.com
MIT License
154 stars 46 forks source link

New-CosmosDbDocument does not allow unspecified partition key #412

Open alexeymarkov opened 3 years ago

alexeymarkov commented 3 years ago

I have a collection where partition key is not really/always used. Some documents do not have partition key value. But New-CosmosDbDocument does not allow to create documents without specifying a fake value as partition key. The function does not produce x-ms-documentdb-partitionkey as [{}] which would mean "no partition key".