Add generic builders for query filters, sorts, and projections

XMLWordPrintableJSON

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

              Assignee:
              Jeffrey Yemin
              Reporter:
              Jeffrey Yemin
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: