Skip to content

Commit 3a17d88

Browse files
authored
(DOCSP-32271) Adds Atlas CTA to several Node.js pages (#781) (#795)
1 parent 1f38b7d commit 3a17d88

File tree

11 files changed

+94
-0
lines changed

11 files changed

+94
-0
lines changed

source/fundamentals/connection.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ learn:
3333
- :ref:`How to Enable TLS on a Connection <node-connect-tls>`
3434
- :atlas:`How to Connect to MongoDB Atlas from AWS Lambda </manage-connections-aws-lambda/>`
3535

36+
Compatibility
37+
-------------
38+
39+
.. |page-topic| replace:: use the {+driver-short+}
40+
.. |link-topic-ing| replace:: using drivers to connect
41+
42+
.. |atlas-url| replace:: :atlas:`Connect Your Application </driver-connection>`
43+
44+
.. include:: /includes/fact-atlas-compatible.rst
45+
.. include:: /includes/fact-atlas-link.rst
46+
3647
For information about authenticating to MongoDB,
3748
see :ref:`node-authentication-mechanisms` and
3849
:ref:`node-enterprise-authentication-mechanisms`.

source/fundamentals/crud.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@ Some operations combine aspects of read and write operations. See our
2828
guide on :doc:`compound operations </fundamentals/crud/compound-operations>`
2929
to learn more about these hybrid methods.
3030

31+
Compatibility
32+
-------------
33+
34+
.. |page-topic| replace:: perform CRUD operations
35+
.. |link-topic-ing| replace:: performing CRUD operations in the Atlas UI
36+
37+
.. |atlas-url| replace:: :atlas:`Create, View, Update, and Delete Documents </atlas-ui/documents>`
38+
39+
.. include:: /includes/fact-atlas-compatible.rst
40+
.. include:: /includes/fact-atlas-link.rst
41+
3142
.. note::
3243

3344
If you are looking for additional resources for learning topics related

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,17 @@ matching data is inserted.
4141

4242
.. include:: /includes/access-cursor-note.rst
4343

44+
Compatibility
45+
-------------
46+
47+
.. |page-topic| replace:: perform read operations
48+
.. |link-topic-ing| replace:: performing read operations in the Atlas UI
49+
50+
.. |atlas-url| replace:: :atlas:`View, Filter, and Sort Documents </atlas-ui/documents/#view--filter--and-sort-documents>`
51+
52+
.. include:: /includes/fact-atlas-compatible.rst
53+
.. include:: /includes/fact-atlas-link.rst
54+
4455
Find
4556
----
4657

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
You can use the {+driver-short+} to connect and |page-topic| for
2+
deployments hosted in the following environments:
3+
4+
.. include:: /includes/fact-environments.rst

source/includes/fact-atlas-link.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
To learn more about |link-topic-ing| for deployments hosted in MongoDB
2+
Atlas, see |atlas-url|.

source/includes/fact-environments.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
- `MongoDB Atlas
2+
<https://www.mongodb.com/docs/atlas>`__: The fully
3+
managed service for MongoDB deployments in the cloud
4+
- :ref:`MongoDB Enterprise <install-mdb-enterprise>`: The
5+
subscription-based, self-managed version of MongoDB
6+
- :ref:`MongoDB Community <install-mdb-community-edition>`: The
7+
source-available, free-to-use, and self-managed version of MongoDB

source/index.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ installing the {+driver-short+}, see
3535
:ref:`Download and Install <node-quick-start-download-and-install>` in the
3636
Quick Start guide.
3737

38+
You can connect using the {+driver-short+} for
39+
deployments hosted in the following environments:
40+
41+
.. include:: /includes/fact-environments.rst
3842

3943
Quick Start
4044
-----------

source/quick-reference.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ Quick Reference
99
This page shows the driver syntax for several MongoDB commands and links to
1010
their related reference and API documentation.
1111

12+
Compatibility
13+
-------------
14+
15+
.. |page-topic| replace:: execute commands
16+
.. |link-topic-ing| replace:: performing common CRUD operations in the Atlas UI
17+
18+
.. |atlas-url| replace:: :atlas:`Create, View, Update, and Delete Documents </atlas-ui/documents>`
19+
20+
.. include:: /includes/fact-atlas-compatible.rst
21+
.. include:: /includes/fact-atlas-link.rst
22+
1223
.. list-table::
1324
:header-rows: 1
1425
:widths: 25 75

source/usage-examples/find.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ documents using one of the following :ref:`cursor methods <cursor-methods>`:
3333

3434
If no documents match the query, ``find()`` returns an empty cursor.
3535

36+
Compatibility
37+
-------------
38+
39+
.. |page-topic| replace:: use the ``find()`` method
40+
.. |link-topic-ing| replace:: finding documents in the Atlas UI
41+
42+
.. |atlas-url| replace:: :atlas:`Create, View, Update, and Delete Documents </atlas-ui/documents/#view--filter--and-sort-documents>`
43+
44+
.. include:: /includes/fact-atlas-compatible.rst
45+
.. include:: /includes/fact-atlas-link.rst
46+
3647
Example
3748
-------
3849

source/usage-examples/findOne.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ in the ``options`` object passed as the second parameter of the
2323
``findOne`` method. For detailed reference documentation, see
2424
`collection.findOne() <{+api+}/classes/Collection.html#findOne>`__.
2525

26+
Compatibility
27+
-------------
28+
29+
.. |page-topic| replace:: use the ``findOne()`` method
30+
.. |link-topic-ing| replace:: finding documents in the Atlas UI
31+
32+
.. |atlas-url| replace:: :atlas:`Create, View, Update, and Delete Documents </atlas-ui/documents/#view--filter--and-sort-documents>`
33+
34+
.. include:: /includes/fact-atlas-compatible.rst
35+
.. include:: /includes/fact-atlas-link.rst
36+
2637
Example
2738
-------
2839

source/usage-examples/insertOne.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ If the operation successfully inserts a document, it appends an
2222
``insertedId`` field to the object passed in the method call, and sets the
2323
value of the field to the ``_id`` of the inserted document.
2424

25+
Compatibility
26+
-------------
27+
28+
.. |page-topic| replace:: use the ``insertOne()`` method
29+
.. |link-topic-ing| replace:: inserting documents in the Atlas UI
30+
31+
.. |atlas-url| replace:: :atlas:`Create, View, Update, and Delete Documents </atlas-ui/documents/#insert-documents>`
32+
33+
.. include:: /includes/fact-atlas-compatible.rst
34+
.. include:: /includes/fact-atlas-link.rst
35+
2536
Example
2637
-------
2738

0 commit comments

Comments
 (0)