Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用 pymongo 在 mongodb 中跳过验证?
我想从 pymongo 运行以下查询:
db.getMongo()._skipValidation = true
非常感谢任何帮助。
谢谢,阿什温。
如果您在 MongoDB 中配置了模式验证,您仍然可以在使用以下bypass_document_validation选项插入或更新文档时绕过验证:
bypass_document_validation
https://api.mongodb.com/python/current/api/pymongo/collection.html#pymongo.collection.Collection.insert_one