Skip to content

TypedAggregation.project incorrect conversion #3898

Closed
@wangxing-git

Description

@wangxing-git
public class A {

    @Id
    @Field
    private String id;

}

Get when usingTypedAggregation.project(A.class)

{
    "$project": {
        "_id": "1"
    }
}

The correct result should be

{
    "$project": {
        "_id": 1
    }
}

spring-data-mongodb version: 3.1.2

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions