Skip to content

Commit 68a285f

Browse files
updated callout types (#145)
1 parent c0b44d7 commit 68a285f

29 files changed

+48
-42
lines changed

source/fundamentals/aggregation.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Connect to a MongoDB Deployment
101101
}
102102
}
103103

104-
.. tip::
104+
.. seealso::
105105

106106
For information on connecting to MongoDB, see the :ref:`Connection Guide <mongoclient>`
107107

@@ -133,7 +133,7 @@ In the following example, the aggregation pipeline:
133133
- Uses a :manual:`$group </reference/operator/aggregation/group/>` stage to group the matching documents by the ``stars``
134134
field, accumulating a count of documents for each distinct value of ``stars``.
135135

136-
.. note::
136+
.. seealso::
137137

138138
You can build the expressions used in this example using the :ref:`aggregation builders <aggregates-builders>`.
139139

source/fundamentals/builders/aggregates.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ Use the ``out()`` method to create an :manual:`$out </reference/operator/aggrega
274274
pipeline stage that writes all documents to the specified collection in
275275
the same database.
276276

277-
.. tip::
277+
.. important::
278278

279279
The ``$out`` stage must be the last stage in any aggregation pipeline.
280280

@@ -293,7 +293,7 @@ Merge
293293
Use the ``merge()`` method to create a :manual:`$merge </reference/operator/aggregation/merge/>`
294294
pipeline stage that merges all documents into the specified collection.
295295

296-
.. tip::
296+
.. important::
297297

298298
The ``$merge`` stage must be the last stage in any aggregation pipeline.
299299

source/fundamentals/builders/projections.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ When you've specified matching criteria in the **query** portion of your operati
254254
variant to specify a :manual:`positional projection </reference/operator/projection/positional/#sorts-and-the-positional-operator>` to include
255255
the first element of an array. Only documents that match the query filter will be retrieved.
256256

257-
.. warning::
257+
.. important::
258258

259259
In MongoDB versions < 4.4, the specified array field must appear in the query filter. Beginning in MongoDB 4.4,
260260
you can use a positional project on an array field that does not appear in the query filter.

source/fundamentals/connection.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ instance of a ``MongoClient``, even across multiple threads. All resource
4040
usage limits, such as max connections, apply to individual
4141
``MongoClient`` instances.
4242

43-
.. note::
43+
.. tip::
4444

4545
Always call ``MongoClient.close()`` to clean up resources when an
4646
instance is no longer needed.
@@ -162,7 +162,7 @@ Select the tab corresponding to the code snippet you would like to see:
162162
MongoClient mongoClient = MongoClients.create(settings);
163163

164164

165-
.. note::
165+
.. tip::
166166

167167
Although it is possible to connect to a replica set deployment by
168168
providing only a single host, you should provide the driver with the

source/fundamentals/connection/jndi.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ JNDI DataSource.
105105
This will make a ``MongoClient`` instance accessible via the JNDI name
106106
``mongodb/MyMongoClient`` in the ``java:comp/env`` context.
107107

108-
.. note::
108+
.. seealso::
109109

110110
For JNDI implementations other than those listed here, you can create
111111
your own ``Factory`` wrapper based on the driver's built-in

source/fundamentals/crud/compound-operations.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ instance:
312312
- Try to find an empty room for Pat and reserve it. As there are not any rooms
313313
left, return ``null``.
314314

315-
.. note:: Write Lock
315+
.. important:: Write Lock
316316

317317
Your MongoDB instance places a write lock on the document you are modifying
318318
for the duration of your compound operation.

source/fundamentals/crud/read-operations/cursor.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ iterate through results in a functional style:
150150
:start-after: begin forEachIteration
151151
:end-before: end forEachIteration
152152

153-
.. warning::
153+
.. important::
154154

155155
Initiating methods return objects that implement the ``Iterable`` interface which allows you
156156
to iterate through them using iterator methods. Sometimes, we use an enhanced

source/fundamentals/crud/read-operations/geo.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ containing two or three number values:
5454
- Latitude in the second position (required)
5555
- Elevation in the third position (optional)
5656

57-
.. tip:: Longitude then Latitude
57+
.. important:: Longitude then Latitude
5858

5959
GeoJSON orders coordinates as longitude first and latitude second. This may
6060
be surprising as geographic coordinate system conventions generally list
@@ -138,7 +138,7 @@ For more information on legacy coordinate pairs, see the
138138

139139
.. external resource
140140

141-
.. note:: Supported Operators
141+
.. tip:: Supported Operators
142142

143143
Spherical (``2dsphere``) and flat (``2d``) indexes support some, but
144144
not all, of the same query operators. For a full list of operators
@@ -248,7 +248,7 @@ The output of the code snippet should look something like this:
248248
{"location": {"address": {"city": "Flushing"}}}
249249
{"location": {"address": {"city": "Elmhurst"}}}
250250

251-
.. note:: Fun Fact
251+
.. tip:: Fun Fact
252252

253253
MongoDB uses the
254254
:manual:`same reference system </reference/glossary/#std-term-WGS84>`

source/fundamentals/crud/read-operations/limit.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ length:
9292
Document{{_id=6, title=A Dance with Dragons, author=Martin, length=1104}}
9393
Document{{_id=4, title=Infinite Jest, author=Wallace, length=1104}}
9494

95-
.. note::
95+
.. tip::
9696

9797
The order in which you call ``limit()`` and ``sort()`` does not matter
9898
because the driver reorders the calls to apply the sort first and the

source/fundamentals/crud/read-operations/retrieve.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ To open a change stream, call the ``watch()`` method on an instance of a
150150
You can pass an aggregation pipeline to this method to notify you as
151151
soon as a change occurs.
152152

153-
.. note::
153+
.. important::
154154

155155
Change streams don't support standalone MongoDB instances because
156156
standalone MongoDB instances don't have an oplog.

0 commit comments

Comments
 (0)