Replies: 1 comment
-
What you're looking for there is the aggregations API. Your resultant Java code should look a lot like what you have above modulo a few Java syntax variations. As for querying against that reference, all you should need to do is pass in a (java) reference to the object you want to query against. If you don't have that reference handy (which is likely), what you pass in can vary based on how you've mapped your entities. If you have that (morphia) reference configured to be |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've built many repositories using Morphia's Filter API and now I need to query a reference field like this:
(Context here: https://stackoverflow.com/a/39476690/1006669)
How can I express a query like this resulting in a
Filter
object?Beta Was this translation helpful? Give feedback.
All reactions