-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
NoSuchElementException throws while using @Aggregation to group #4546
Labels
type: task
A general task
Milestone
Comments
spring-projects-issues
added
the
status: waiting-for-triage
An issue we've not yet triaged
label
Nov 3, 2023
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
added
status: waiting-for-feedback
We need additional information before we can continue
and removed
status: waiting-for-triage
An issue we've not yet triaged
labels
Nov 3, 2023
@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? |
spring-projects-issues
added
status: feedback-provided
Feedback has been provided
and removed
status: waiting-for-feedback
We need additional information before we can continue
labels
Nov 6, 2023
mp911de
added
type: task
A general task
and removed
status: feedback-provided
Feedback has been provided
labels
Nov 6, 2023
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: