From 66eb6da601551cea6b32b709aac44495c80e3d5d Mon Sep 17 00:00:00 2001 From: "Jesse M. Holmes" Date: Wed, 20 Feb 2019 10:45:45 -0500 Subject: [PATCH] Update docs to use list_collection_names method (#401) db.collection_names() is deprecated. --- doc/tutorial.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tutorial.rst b/doc/tutorial.rst index f854a3d5d..3e77ab1d8 100644 --- a/doc/tutorial.rst +++ b/doc/tutorial.rst @@ -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`