Skip to content

How to add bypassDocumentValidation property by using MongoTemplate? #4774

Open
@juefeiyan

Description

@juefeiyan

Hi there, we have an application that uses MongoTemplate.findAndModify the method to update MongoDB, and I want to add bypassDocumentValidation to the query.

However, I noticed that the FindAndModifyCallback doesn't pass bypassDocumentValidation from the FindAndModifyOptions to the FindOneAndUpdateOptions . I'm wondering if there's any way to bypass document validation using MongoTemplate?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions