I am trying to provide data validation on existing collection. For this, i am using “collMod” command in python as below:
options = dict(containing $jsonschema validator)
db.command(“collMod”, “collection_name”, options) and i am verifying whether this latest validator is updated or not in “collection_name” as below:
But i am not able to see updated validator $jsonschema.
Note: I am able to update using mongo shell. However, i have to do with python only.
I require your help!!