Update docs to use list_collection_names method (#401)
db.collection_names() is deprecated.
This commit is contained in:
parent
481600b7fe
commit
66eb6da601
@ -142,7 +142,7 @@ of the collections in our database:
|
||||
|
||||
.. doctest::
|
||||
|
||||
>>> db.collection_names(include_system_collections=False)
|
||||
>>> db.list_collection_names()
|
||||
[u'posts']
|
||||
|
||||
Getting a Single Document With :meth:`~pymongo.collection.Collection.find_one`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user