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

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

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4
    • Component/s: None
    • Environment:
      Ubuntu 12.04, Python 2.7

      Description

      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!

        Attachments

          Activity

            People

            Assignee:
            behackett Bernie Hackett
            Reporter:
            ddw Dave Walk
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: