PowerShell Module for working with Azure Cosmos DB databases, collections, documents, attachments, offers, users, permissions, triggers, stored procedures and user defined functions.
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".
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".