We got info from our team - Cosmos DB doesn’t support schema validation, but here’s a workaround in the last answer of this thread.
Hope this helps.
Regards
Navtej S
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have been searching for a way to instantiate a collection with a schema using the Pymongo API to access the Cosmos DB API.
I see the MongoDB API 3.6 does not support the 'myColl' database operator. Is there another method to do this? I need a method that I can script so that the process can be automated and run in the background.
We got info from our team - Cosmos DB doesn’t support schema validation, but here’s a workaround in the last answer of this thread.
Hope this helps.
Regards
Navtej S