File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Tutorial: FastAPI Integration
8
8
.. contents:: On this page
9
9
:local:
10
10
:backlinks: none
11
- :depth: 2
11
+ :depth: 3
12
12
:class: singlecol
13
13
14
14
.. facet::
@@ -105,9 +105,13 @@ Connect Your Application to Your Cluster
105
105
All the code for the example application is stored in the `app.py file in the mongodb-with-fastapi repository
106
106
<https://github.com/mongodb-developer/mongodb-with-fastapi/blob/master/app.py>`__.
107
107
108
- Use the following code to :ref:`connect to your MongoDB Atlas cluster
109
- <pymongo_connect_atlas>` by using the {+driver-async+} ``AsyncMongoClient()``
110
- method and the ``MONGODB_URL`` environment variable, then specify the database named ``college``:
108
+ Use the following code to:
109
+
110
+ 1. :ref:`Connect to your MongoDB Atlas cluster <pymongo_connect_atlas>` by using
111
+ the ``AsyncMongoClient()`` method with the ``MONGODB_URL`` environment
112
+ variable and specifying the database named ``college``.
113
+ #. Create a pointer to the ``"college"`` database.
114
+ #. Create a pointer to the ``"students"`` collection
111
115
112
116
.. code-block:: python
113
117
You can’t perform that action at this time.
0 commit comments