-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
I have a collection that contains lots of documents with a lot of small fields and one large one. There is a method in the Java driver that allows you to specify which fields to pull. In some cases it would be easier to specify which fields not to pull.
Current method:
find(DBObject ref, DBObject keys)
Desired method:
find(DBObject ref, DBObject keys, boolean exclude)
(do not included these fields - or do)
Additionally, it would make sense to have similar findOne methods.