Skip to content

TypedAggregation.project incorrect conversion #3898

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wangxing-git opened this issue Dec 3, 2021 · 1 comment
Closed

TypedAggregation.project incorrect conversion #3898

wangxing-git opened this issue Dec 3, 2021 · 1 comment
Assignees
Labels
type: bug A general bug

Comments

@wangxing-git
Copy link

wangxing-git commented Dec 3, 2021

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

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 3, 2021
@christophstrobl christophstrobl added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 7, 2021
@christophstrobl
Copy link
Member

Thanks for reporting!

@christophstrobl christophstrobl linked a pull request Dec 7, 2021 that will close this issue
@mp911de mp911de added this to the 3.2.8 (2021.0.8) milestone Dec 14, 2021
mp911de added a commit that referenced this issue Dec 14, 2021
Tweak Javadoc.

See #3898
Original pull request: #3904.
mp911de pushed a commit that referenced this issue Dec 14, 2021
mp911de added a commit that referenced this issue Dec 14, 2021
Tweak Javadoc.

See #3898
Original pull request: #3904.
mp911de pushed a commit that referenced this issue Dec 14, 2021
mp911de added a commit that referenced this issue Dec 14, 2021
Tweak Javadoc.

See #3898
Original pull request: #3904.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants