Reputation: 332
Is it possible to skip validation in mongodb using pymongo?
I want to run below query from pymongo :
db.getMongo()._skipValidation = true
Any help is highly appreciated.
Thanks, Ashwin.
Upvotes: 1
Views: 1257
Reputation: 24007
If you have schema validation configured in MongoDB, you can nevertheless bypass validation when you insert or update documents with the bypass_document_validation
option:
Upvotes: 4