CosmosDB icon indicating copy to clipboard operation
CosmosDB copied to clipboard

New-CosmosDbDocument does not allow unspecified partition key

Open alexeymarkov opened this issue 3 years ago • 0 comments

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".

alexeymarkov avatar May 06 '21 06:05 alexeymarkov