diff --git a/doc/api/pymongo/collection.rst b/doc/api/pymongo/collection.rst index a75c0ac58..e3746c68b 100644 --- a/doc/api/pymongo/collection.rst +++ b/doc/api/pymongo/collection.rst @@ -69,3 +69,5 @@ .. automethod:: drop .. automethod:: rename .. automethod:: options + .. automethod:: __getitem__ + .. automethod:: __getattr__ diff --git a/doc/api/pymongo/database.rst b/doc/api/pymongo/database.rst index b40a77dff..044e04971 100644 --- a/doc/api/pymongo/database.rst +++ b/doc/api/pymongo/database.rst @@ -20,6 +20,8 @@ .. note:: Use dictionary style access if `collection_name` is an attribute of the :class:`Database` class eg: db[`collection_name`]. + .. automethod:: __getitem__ + .. automethod:: __getattr__ .. autoattribute:: codec_options .. autoattribute:: read_preference .. autoattribute:: write_concern diff --git a/doc/api/pymongo/mongo_client.rst b/doc/api/pymongo/mongo_client.rst index 83dab27f2..37ec8ae00 100644 --- a/doc/api/pymongo/mongo_client.rst +++ b/doc/api/pymongo/mongo_client.rst @@ -35,3 +35,5 @@ .. automethod:: get_database .. automethod:: server_info .. automethod:: watch + .. automethod:: __getitem__ + .. automethod:: __getattr__