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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.8, 3.0
    • Affects Version/s: None
    • Component/s: None

      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'.

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

              Created:
              Updated:
              Resolved: