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

MongoCollection.distinct() should have a required filter parameter

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 3.1.0
    • 3.0.0
    • API
    • None

    Description

      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>;
      

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: