Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4971

Add overloads for the `compound` must/mustNot/filter/should clauses to accept a single SearchOperator

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Builders
    • None

      Currently these methods take an `Iterable<SearchOperator>`.  If there's only one such SearchOperator, it requires doing something like `.must(Arrays.asList(clause))`.  It would be more convenient for developers to have overloaded methods that take a single SearchOperator instead of an Iterable.

            Assignee:
            Unassigned Unassigned
            Reporter:
            erik.hatcher@mongodb.com Erik Hatcher
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: