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

Stop using filemd5 in docs example for db.command

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.7
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Stop using filemd5 in docs example for db.command():

              For commands that take additional arguments we can use
              kwargs. So ``{filemd5: object_id, root: file_root}`` becomes:
      
              >>> db.command("filemd5", object_id, root=file_root)
              OR
              >>> db.command({"filemd5": object_id, "root": file_root})
      

      https://github.com/mongodb/mongo-python-driver/blob/158e6c6574a8658afffadd77ea77d372f364a9ec/pymongo/database.py#L818-L823

      filemd5 is a legacy command that no one should be using.

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: