Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-362

find() behavior with a filter field makes no sense

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.3
    • Affects Version/s: None
    • Component/s: Querying
    • None

      > small.find({},

      {prop1:1}

      )
      {
      "_id" : ObjectId("4ad394773dbdf53293f6c58a"),
      "prop1" : "men"
      }
      > small.find({},{_id:1,prop1:1})
      {
      "_id" : ObjectId("4ad394773dbdf53293f6c589")
      }
      {
      "_id" : ObjectId("4ad394773dbdf53293f6c58a"),
      "prop1" : "men"
      }
      {
      "_id" : ObjectId("4ad394773dbdf53293f6c58b")
      }
      > small.find({},

      {prop1:1,id:1}

      )
      {
      "_id" : ObjectId("4ad394773dbdf53293f6c58a"),
      "prop1" : "men"
      }

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            dwight@mongodb.com Dwight Merriman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: