Correct the docstring for create_indexes.
This commit is contained in:
parent
f2aff0fd14
commit
361443ffe8
@ -1361,7 +1361,7 @@ class Collection(common.BaseObject):
|
||||
... ("world", ASCENDING)], name="hello_world")
|
||||
>>> index2 = IndexModel([("goodbye", DESCENDING)])
|
||||
>>> db.test.create_indexes([index1, index2])
|
||||
["hello_world"]
|
||||
["hello_world", "goodbye_-1"]
|
||||
|
||||
:Parameters:
|
||||
- `indexes`: A list of :class:`~pymongo.operations.IndexModel`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user