Details
-
New Feature
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
Description
The proposed syntax makes heavy use of static methods (which can be imported to improve readability). It will allow code like this:
collection.find(and(eq("x", "val"), gt("y", 5), lt("y", 10)) |
.sort(orderBy(ascending("y", "z"), descending("a"))) |
.projection(fields(include("y", "z", "a"), excludeId())); |
assuming aggressive use of static imports.