-
Notifications
You must be signed in to change notification settings - Fork 1.1k
@Field annotation not honoured after $unwind stage in aggregation #4443
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
Comments
Which version would contain the fix? |
Thanks for reporting, @scrum-futch. Not sure exactly which version, but there's a PR in progress. |
When is the estimated release date for 3.4.15? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi I have following pojos :
Document in my db is :
My aggregation query is :
Ideally, I should get back one document. But I don't get any output.
Upon debugging I found the aggregation query internally is :
Here in the first match stage, I have the correct fieldName as per @field annotation i.e. pojo_header.name
but in the stage after unwind it's header.name instead of pojo_header.name
Test code to showcase issue is present in: https://github.com/scrum-futch/Aggregation-issue
Test code that was previous working before updating here: https://github.com/scrum-futch/Aggregation-issue/tree/Previously_working
aggregation pipeline is logged after log "----Check the pipeline log after this-----"
Please share if there is any workaround for the same.
MongoDB: 4.4
The text was updated successfully, but these errors were encountered: