-
Notifications
You must be signed in to change notification settings - Fork 1.1k
NoSuchElementException throws while using @Aggregation to group #4546
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
Labels
type: task
A general task
Milestone
Comments
The @Aggregation("{ '$project': { '_id' : '$lastname' } }")
List<Person> ...
@Aggregation(pipeline = {
"{ '$group': { '_id' : '$lastname', names : { $addToSet : '$?0' } } }",
"{ '$sort' : ... }
})
List<Person> ... Please remove the outer square brackets to archive the expected behaviour. |
@christophstrobl It worked well after remove the outer square. I have saw the pull request. Could you tell me why not support to parse the json array instead of throw a IllegalStateException? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
my case :
It work well while using
mongoTemplate.aggregate
:exception stack log:
The text was updated successfully, but these errors were encountered: