spring-data-mongodb
spring-data-mongodb copied to clipboard
Provides support to increase developer productivity in Java when using MongoDB. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access...
**Expected behavior:** When I add the `SECONDARY_READS` meta flag using the annotation `@Meta(flags = { SECONDARY_READS })` or when `.allowSecondaryReads()` is invoked on a query, the read preference should be...
See https://github.com/spring-projects/spring-data-commons/pull/3050
Suppose you have a document where `_id` is defined with a [$function](https://www.mongodb.com/docs/manual/reference/operator/aggregation/function/), like the following: ```json { "_id": { "$function": { "body": "some js code that takes no arguments" "args":...
## Setup Spring Boot `3.3.4` with `org.springframework.boot:spring-boot-starter-webflux` and `org.springframework.boot:spring-boot-starter-data-mongodb-reactive`. MongoDB version is `6.0.18`. ## MongoDB Config Reactive mongo client is configured in configuration to activate transactional feature in mongo templates:...
I'm currently converting aggregations pipelines from `MongoRepository` to concrete classes with `MongoTemplate`, due to #4808, among other issues. In repositories, you can write pipelines as an array of json strings...
In the discussion of potential solutions for #4808, one idea was to add a `resolver` attribute to the `@Meta` annotation that could… - either take a SpEL expression returning a...
- [x] You have read the [Spring Data contribution guidelines](https://github.com/spring-projects/spring-data-build/blob/master/CONTRIBUTING.adoc). - [x] You use the code formatters provided [here](https://github.com/spring-projects/spring-data-build/tree/master/etc/ide) and have them applied to your changes. Don’t submit any formatting...
Hello, Using SetOperators.SetUnion: `SetOperators.arrayAsSet("aField").union("anotherField")` How can I reproduce this expression that works fine in Mongo, when one field is a single value and needs to be wrapped in square brackets:...