-
Notifications
You must be signed in to change notification settings - Fork 38
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
aggregate function return stream of Entities #245
Conversation
Can one of the admins verify this patch? |
...src/main/java/org/eclipse/jnosql/databases/mongodb/communication/MongoDBDocumentManager.java
Outdated
Show resolved
Hide resolved
...l-mongodb/src/main/java/org/eclipse/jnosql/databases/mongodb/communication/MongoDBUtils.java
Outdated
Show resolved
Hide resolved
should be left private
Aggregates.match(eq("name", "Poliana")), | ||
Aggregates.group("$stars", Accumulators.sum("count", 1)) | ||
); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also create a test for the new aggregate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not have dockerized test. just expect it shouldn't fail...
...src/main/java/org/eclipse/jnosql/databases/mongodb/communication/MongoDBDocumentManager.java
Outdated
Show resolved
Hide resolved
@dearrudam did you run it locally? |
No @otaviojava , I didn't it yet... I'm going to do it asap! |
@otaviojava @redmitry , it works! |
Thank you Max |
Adopt MongoDBTemplate aggregate to NoSQL model.
see: [msg00661] (https://www.eclipse.org/lists/jnosql-dev/msg00661.html)
N.B. This patch breaks compatibility with previous aggregate interface!