In the documentation we see that it is possible to manage nullability for the repository methods. Look at section [9.4.7 Null Handling of Repository Methods](https://docs.spring.io/spring-data/data-mongodb/docs/current/reference/html/#repositories.nullability).  While it works for simple methods like: `User findByEmailAddress(@Nullable EmailAddress emailAdress); ` The same approach will cause an error for "Containing" kind of methods: `User findByFirstnameContaining(@Nullable String name)` If I call this method with null `name` I get this error: ` "message": "Argument for creating $regex pattern for property 'section' must not be null!"` I think the more appropriate solution would be omitting any null input parameter during query building phase.