spring-data-mongodb icon indicating copy to clipboard operation
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...

Results 243 spring-data-mongodb issues
Sort by recently updated
recently updated
newest added

Attempting to do data migration and rename fields within nested array. But since $rename doesn't work. I am editing the document in json directly and use findAndReplace(). ``` /** *...

type: documentation

**[Poorna Subhash](https://jira.spring.io/secure/ViewProfile.jspa?name=poornasubhash)** opened **[DATAMONGO-869](https://jira.spring.io/browse/DATAMONGO-869?redirect=false)** and commented [DATAMONGO-811](https://jira.spring.io/browse/DATAMONGO-811) addressed the update of `@Version` field. But both update* and findAndModify methods lack in updating audit fields `@CreatedBy`, `@LastModifiedBy`, `@CreatedDate`, `@LastModifiedDate` . Currently...

in: core
type: enhancement

**[Mark Paluch](https://jira.spring.io/secure/ViewProfile.jspa?name=mp911de)** opened **[DATAMONGO-1922](https://jira.spring.io/browse/DATAMONGO-1922?redirect=false)** and commented --- 1 votes, 2 watchers

in: core
type: enhancement

We should update our test client settings to run at least one CI build with a strict API version to ensure we only rely on features that are included in...

type: task

Using `spring-boot-starter-data-mongodb:2.6.6` - `spring-boot-starter:2.6.6` - `mongodb-driver-sync:4.4.2` - `spring-data-mongodb: 3.3.3` Documentation https://docs.spring.io/spring-data/mongodb/docs/current/reference/html/#mongo-template.id-handling states that the `@MongoId` annotation can be used to control the data that gets written to mongodb. I want...

type: bug

Currently the only way to create an `$or` only query is counter intuitive and leads people to creating `$and` combined criterions to a single element `$or` as outlined below. ```java...

type: enhancement

Using `@Query` to skip entire criteria entries when given a `null` value is cumbersome at the moment but could be done as follows. ```java interface Repo extends CrudRepository { @Query("""...

type: enhancement

I have this simple aggregation: ``` public static final String match_finById = "{$match: {_id: ObjectId(?0)}}"; public static final String match_findById_date = "{$match: {'dynamicFields.validationDate': {$lte: ISODate('?1')}}}"; @Aggregation(pipeline = {match_finById,match_findById_date}) List findCompanyById(String...

type: bug

The `@MongoId` annotation is not being taken into account for `aggregate` queries like it is for `find` queries. This causes incorrect results for the aggregation match query because it's improperly...

type: bug

Assume the following class ``` @Document(collection = "testDocuments") public class TestDocument { @Id private UUID id; @DocumentReference private List children; } ``` then the following test fails ``` @Test void...

type: bug