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

new find methods that pull all fields *except*

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • 0.8
    • 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.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            rn@deftlabs.com Ryan Nitz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: