CosmosDB
CosmosDB copied to clipboard
New-CosmosDbDocument does not allow unspecified 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".