-
Type: New Feature
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: API, Query Operations
-
None
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.