Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-1282

Stop using filemd5 in docs example for db.command

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.4
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Python Drivers

      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::
      
          result = await db.command("filemd5", object_id, root=file_root)
      

      https://github.com/mongodb/motor/blob/8f71800c4a891ed11b8f70efb3116ecc3d50db50/motor/docstrings.py#L335-L338

      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: