Update docs to use list_collection_names method (#401)

db.collection_names() is deprecated.
This commit is contained in:
Jesse M. Holmes 2019-02-20 10:45:45 -05:00 committed by Shane Harvey
parent 481600b7fe
commit 66eb6da601

View File

@ -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`