MongoCollection.distinct() should have a required filter parameter

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 3.1.0
    • Affects Version/s: 3.0.0
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      See: http://api.mongodb.org/java/3.0/com/mongodb/client/MongoCollection.html

      <TResult> DistinctIterable<TResult> distinct(String fieldName, Class<TResult> resultClass)
      

      Per the CRUD spec, this method should have a required filter parameter as its second argument:

      distinct(fieldName: string, filter: Document, options: DistinctOptions): Iterable<any>;
      

            Assignee:
            Ross Lawley
            Reporter:
            Jeremy Mikola
            None
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: