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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8, 3.0
    • Component/s: None
    • Sprint:
      Python Sprint 8

      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

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: