Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-404

Clarify use of 'fields' parameter in Collection.find()

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 2.4
    • Affects Version/s: None
    • Component/s: None
    • Environment:
      Ubuntu 12.04, Python 2.7

      I'm trying to create an API using MongoDB in Python with the pymongo driver and I don't want to return the _id field to the client. I searched all over the documentation and can't find a way to remove it as the pymongo documentation says that it is "always" included. Is there any kind of workaround? Thanks!

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            ddw Dave Walk
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: