[JAVA-1758] MongoCollection.distinct() should have a required filter parameter Created: 09/Apr/15  Updated: 07/Oct/15  Resolved: 24/Apr/15

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: 3.0.0
Fix Version/s: 3.1.0

Type: Improvement Priority: Minor - P4
Reporter: Jeremy Mikola Assignee: Ross Lawley
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends

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



 Comments   
Comment by Jeffrey Yemin [ 07/Oct/15 ]

Released in 3.1.0

Comment by Ross Lawley [ 10/Apr/15 ]

We provide a fluent style builder so in the meantime please set the filter on the DistinctIterable.

Generated at Thu Feb 08 08:55:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.