Skip to content

Commit 6f8bb99

Browse files
committed
numbers steps
1 parent 6e29536 commit 6f8bb99

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

source/integrations/fastapi-integration.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff 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
105105
All 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

0 commit comments

Comments
 (0)