Skip to content

Commit 5cc7f32

Browse files
committed
titles
1 parent 61fd0aa commit 5cc7f32

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

source/integrations/mongoose-get-started.txt

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ methods. These methods are not used specifically in this tutorial, but they are
9191
helpful to reference when getting started with Mongoose.
9292

9393
exists()
94-
````````
94+
~~~~~~``
9595

9696
The ``exists()`` method returns either ``null`` or the ``ObjectId`` of a document that
9797
matches the provided query. The following is an example of matching an article
@@ -107,7 +107,7 @@ For more information, see the `Model.exists()
107107
Mongoose API documentation.
108108

109109
where()
110-
```````
110+
~~~~~~`
111111

112112
The ``where()`` method allows you to chain and build queries. The following is
113113
an example of performing a find operation by using ``findOne()`` and the equivalent
@@ -149,18 +149,17 @@ In this tutorial, you will perform the following actions:
149149
- Validate your data
150150
- Use multiple schemas and middleware
151151

152-
Prerequisites
153-
~~~~~~~~~~~~~
152+
.. procedure::
153+
:style: connected
154154

155-
Before you begin this tutorial, perform the following actions:
155+
.. step:: Prerequisites
156156

157-
- Set up a MongoDB Atlas account and configure a cluster.
158-
To view instructions, see the :atlas:`Get Started with Atlas
159-
</getting-started>` guide.
160-
- Install `Node.js <https://nodejs.org/en/download>`__ {+min-node-version+} or later.
157+
Before you begin this tutorial, perform the following actions:
161158

162-
.. procedure::
163-
:style: connected
159+
- Set up a MongoDB Atlas account and configure a cluster. To view
160+
instructions, see the :atlas:`Get Started with Atlas </getting-started>`
161+
guide.
162+
- Install `Node.js <https://nodejs.org/en/download>`__ {+min-node-version+} or later.
164163

165164
.. step:: Set up your environment.
166165

@@ -226,7 +225,7 @@ Before you begin this tutorial, perform the following actions:
226225
perform CRUD operations using Mongoose.
227226

228227
Insert Data
229-
````````````
228+
~~~~~~~~~~~
230229

231230
Go to ``index.js`` and add the following import statement to the top of your file:
232231

@@ -280,7 +279,7 @@ Before you begin this tutorial, perform the following actions:
280279
insert multiple articles into your database.
281280

282281
Update Data
283-
````````````
282+
~~~~~~~~~~~~
284283

285284
To update data, you can directly edit the local object with Mongoose.
286285
Then, you can use the ``save()`` method to write the update to the
@@ -313,7 +312,7 @@ Before you begin this tutorial, perform the following actions:
313312
}
314313

315314
Find Data
316-
``````````
315+
~~~~~~~~~~
317316

318317
To find a specific document, you can use the Mongoose ``findById()``
319318
method to get a document by its ``ObjectId``.
@@ -354,7 +353,7 @@ Before you begin this tutorial, perform the following actions:
354353
documentation.
355354

356355
Specify Document Fields
357-
```````````````````````
356+
~~~~~~~~~~~~~~~~~~~~~~~
358357

359358
You can use Mongoose to project only the
360359
fields that you need. The following code specifies to only project the
@@ -384,7 +383,7 @@ Before you begin this tutorial, perform the following actions:
384383
}
385384

386385
Delete Data
387-
```````````
386+
~~~~~~~~~~~
388387

389388
Mongoose uses the ``deleteOne()`` and ``deleteMany()`` methods to delete
390389
data from a collection. You can specify the field of the document you want

0 commit comments

Comments
 (0)