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
88.. contents:: On this page
99 :local:
1010 :backlinks: none
11- :depth: 2
11+ :depth: 3
1212 :class: singlecol
1313
1414.. facet::
@@ -105,9 +105,13 @@ Connect Your Application to Your Cluster
105105All the code for the example application is stored in the `app.py file in the mongodb-with-fastapi repository
106106<https://github.com/mongodb-developer/mongodb-with-fastapi/blob/master/app.py>`__.
107107
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
111115
112116.. code-block:: python
113117
You can’t perform that action at this time.
0 commit comments