Morphia is not currently set up to accept, say, a json string representing a query as you might write in the shell and execute. I have given some thought to something along those line (along the lines of java.sql.PreparedStatement
or hibernate’s named queries, e.g.) but it’s a pretty low priority so far. There are more interesting and significant features and fixes to deal with first. so, yes, the appropriate route with Morphia is via the APIs defined by Query
.
2 Likes