Tuesday, July 30, 2019

ComosDB - MongoAPI - Document does not contain shard key
This issue comes in picture when we forget to put value for Shard Key while inserting values in document. It means once we have declared Shard key for document it should be part of model which is inserting. Kindly refer an images below:
ShardKey of CosmosDB collection
ShardKey in CosmosDB collection's document :

ShardKey in CosmosDB within collection

I Hope it will help you to resolve your problem.
#CosmosDB #Azure


Post a Comment