How to add bypassDocumentValidation property by using MongoTemplate? #4774
Labels
status: feedback-provided
Feedback has been provided
status: pending-design-work
Needs design work before any code can be developed
status: waiting-for-triage
An issue we've not yet triaged
Hi there, we have an application that uses
MongoTemplate.findAndModify
the method to update MongoDB, and I want to addbypassDocumentValidation
to the query.However, I noticed that the
FindAndModifyCallback
doesn't pass bypassDocumentValidation from theFindAndModifyOptions
to theFindOneAndUpdateOptions
. I'm wondering if there's any way to bypass document validation usingMongoTemplate
?The text was updated successfully, but these errors were encountered: