I'm using spring-data-mongodb:2.2.2.RELEASE, spring-boot-starter-webflux:2.2.2.RELEASE and a Mongodb v4.2.x. I need change the database collation in order to set it for being case insensitive for all queries.
I check the doc:
- https://docs.spring.io/spring-data/mongodb/docs/current/api/org/springframework/data/mongodb/core/query/Collation.html
- https://docs.spring.io/spring-data/mongodb/docs/2.2.5.RELEASE/reference/html/#mongo.collation
but I don't figure out how use it with reactive templates.
@Configuration
@EnableReactiveMongoRepositories
class MongoConfig {
// How should I use it?
}