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...
**[Heiko Scherrer](https://jira.spring.io/secure/ViewProfile.jspa?name=scherrer)** opened **[DATAMONGO-1151](https://jira.spring.io/browse/DATAMONGO-1151?redirect=false)** and commented **Task description** I request a feature that I couldn't find in the current implementation. Probably there's another elegant way to solve the requested behaviour....
Hi All, I had previously used certain settings for MongoDB of observability, and those configurations were effective. ``` @Bean MongoClientSettingsBuilderCustomizer mongoMetricsSynchronousContextProvider(ObservationRegistry registry) { return (clientSettingsBuilder) -> { clientSettingsBuilder.contextProvider(ContextProviderFactory.create(registry)) .addCommandListener(new MongoObservationCommandListener(registry));...
I have a `@Document` class, `Foo` with a field like this: ``` @Field(value = "bar", targetType = FieldType.OBJECT_ID) String bar; ``` I'm using QueryDSL so I also end up with...
Dear friends, On our project we faced with issue when using `PropertyValueConverter` that cause `ClassCastException`. Here are some code snippets: Entity class with ValueConverter annotation: ```java @Document("user") @Data public class...
`SetOperators`, `DateOperators` and other factories to create aggregation expressions accept either `String` field references or `AggregationExpression`s. With the evolution of `AggregationVariable`, that is a `Field`, calling code has to unwrap...
I have the following data class in kotlin, where the "type" attribute always has the fixed value "BILLET", this is because the interface that my class implements asks for this...
Use the write concern resolver consistently throughout the codebase.
mongoTemplate seems to automatically convert strings to ObjectIds, which can lead to undesired behavior I'm using mongo 6.x and spring-data-mongo 4.0.8 See the following test and its log output: ```...
Add a generic PropertyExpression to give an alias for any AggregationExpression currently you can use a class in ArrayOperators.Reduce.PropertyExpression which is i think misleading as i first thought it will...
# TLDR; When annotating a query with `@Annotation` on a MongoRepository of a view, this UncategorizedMongoDbException is thrown: `Command failed with error 166 (CommandNotSupportedOnView): 'Namespace my_database.my_view is a view, not...