Skip to content

Commit

Permalink
MOTOR-1282 Stop using filemd5 in docs example for db.command (mongodb…
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneHarvey authored Mar 18, 2024
1 parent 9d00dd2 commit 1414d0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions motor/docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,9 @@ async def create_two_indexes():
result = await db.command("count", collection_name)
For commands that take additional arguments we can use
kwargs. So ``{filemd5: object_id, root: file_root}`` becomes::
kwargs. So ``{count: collection_name, query: query}`` becomes::
result = await db.command("filemd5", object_id, root=file_root)
result = await db.command("count", collection_name, query=query)
:Parameters:
- `command`: document representing the command to be issued,
Expand Down

0 comments on commit 1414d0f

Please sign in to comment.