[JAVA-2427] Deprecate modifiers in FindOptions and replace with properties Created: 18/Jan/17  Updated: 23/Aug/17  Resolved: 03/May/17

Status: Closed
Project: Java Driver
Component/s: API, Query Operations
Affects Version/s: None
Fix Version/s: 3.5.0

Type: New Feature Priority: Major - P3
Reporter: Rathi Gnanasekaran Assignee: Ross Lawley
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-347 Support deprecated "modifiers" FindOp... Closed
Related
related to JAVA-2104 Add explain() capability for new Java... Closed

 Comments   
Comment by Jeffrey Yemin [ 23/Aug/17 ]

JAVA-2104 is the issue where we're considering a replacement for the $explain modifier.

Comment by Michael Dikman [ 23/Aug/17 ]

How the following code should be replaced?

FindIterable<Document> iterable = dbCollection.find(filter).modifiers(new Document("$explain", true));

FindIterable doesn't contains explain method.

Thanks

Comment by Githook User [ 03/May/17 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Updated FindOperation, Options and Iterables

Modifiers have now been deprecated and made first class
options.

JAVA-2427
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/60814010746ba3dcdc66ca71e3ec06d5d85e5a02

Comment by Ross Lawley [ 03/May/17 ]

PR: https://github.com/rozza/mongo-java-driver/pull/195

Comment by Ross Lawley [ 02/May/17 ]

Misread the Drivers ticket, its not about supporting deprecated modifiers, its about deprecating the modifiers and adding options.

Comment by Ross Lawley [ 02/May/17 ]

Nothing to do.

The FindOperation is passed any modifiers set in the FindOptions and actions them as needed.

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