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

database.dereference() should pass **kwargs to find_one()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 2.8, 3.0
    • None

    Description

      database.dereference() is basically a wrapper for a call to collection.find_one() and yet it doesn't allow any of the same kwarg values. The particular itch I'm looking to scratch is to pass 'manipulate=False', but I can imagine other options to collection.find_one() being useful as well, e.g., 'fields' and 'as_class'.

      Attachments

        Activity

          People

            bernie@mongodb.com Bernie Hackett
            lbjay Jay Luker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: