Skip to content

Commit

Permalink
(DOCSP-32271) Adds Atlas CTA to several Node.js pages
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahsimpers committed Sep 15, 2023
1 parent 31ac73b commit dfc878a
Show file tree
Hide file tree
Showing 11 changed files with 95 additions and 0 deletions.
11 changes: 11 additions & 0 deletions source/fundamentals/connection.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ learn:
- :ref:`How to Enable SOCKS5 Proxy Support <node-connect-socks>`
- :atlas:`How to Connect to MongoDB Atlas from AWS Lambda </manage-connections-aws-lambda/>`

Compatibility
-------------

.. |page-topic| replace:: use the Node.js driver
.. |link-topic-ing| replace:: connecting using drivers

.. |atlas-url| replace:: :atlas:`Connect via Your Application </driver-connection>`

.. include:: /includes/fact-atlas-compatible.rst
.. include:: /includes/fact-atlas-link.rst

For information about authenticating to MongoDB,
see :ref:`node-authentication-mechanisms` and
:ref:`node-enterprise-authentication-mechanisms`.
11 changes: 11 additions & 0 deletions source/fundamentals/crud.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ Some operations combine aspects of read and write operations. See our
guide on :doc:`compound operations </fundamentals/crud/compound-operations>`
to learn more about these hybrid methods.

Compatibility
-------------

.. |page-topic| replace:: use CRUD operations
.. |link-topic-ing| replace:: using CRUD operations in the Atlas UI

.. |atlas-url| replace:: :atlas:`Create, View, Update, and Delete Documents </atlas-ui/documents>`

.. include:: /includes/fact-atlas-compatible.rst
.. include:: /includes/fact-atlas-link.rst

.. note::

If you are looking for additional resources for learning topics related
Expand Down
11 changes: 11 additions & 0 deletions source/fundamentals/crud/read-operations/retrieve.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ matching data is inserted.

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

Compatibility
-------------

.. |page-topic| replace:: use read operations
.. |link-topic-ing| replace:: using read operations in the Atlas UI

.. |atlas-url| replace:: :atlas:`Create, View, Update, and Delete Documents </atlas-ui/documents/#view--filter--and-sort-documents>`

.. include:: /includes/fact-atlas-compatible.rst
.. include:: /includes/fact-atlas-link.rst

Find
----

Expand Down
4 changes: 4 additions & 0 deletions source/includes/fact-atlas-compatible.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
You can connect using the Node.js driver and |page-topic| for
deployments hosted in the following environments:

.. include:: /includes/fact-environments.rst
2 changes: 2 additions & 0 deletions source/includes/fact-atlas-link.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
To learn more about |link-topic-ing| for deployments hosted in MongoDB
Atlas, see |atlas-url|.
7 changes: 7 additions & 0 deletions source/includes/fact-environments.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- `{+atlas+}
<https://www.mongodb.com/docs/atlas>`__: The fully
managed service for MongoDB deployments in the cloud
- :ref:`MongoDB Enterprise <install-mdb-enterprise>`: The
subscription-based, self-managed version of MongoDB
- :ref:`MongoDB Community <install-mdb-community-edition>`: The
source available, free-to-use, and self-managed version of MongoDB
5 changes: 5 additions & 0 deletions source/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ installing the {+driver-short+}, see
:ref:`Download and Install <node-quick-start-download-and-install>` in the
Quick Start guide.

You can connect using the Node.js driver for
deployments hosted in the following environments:

.. include:: /includes/fact-environments.rst

Quick Start
-----------

Expand Down
11 changes: 11 additions & 0 deletions source/quick-reference.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ Quick Reference
This page shows the driver syntax for several MongoDB commands and links to
their related reference and API documentation.

Compatibility
-------------

.. |page-topic| replace:: use the following driver syntax
.. |link-topic-ing| replace:: using common CRUD operations in the Atlas UI

.. |atlas-url| replace:: :atlas:`Create, View, Update, and Delete Documents </atlas-ui/documents>`

.. include:: /includes/fact-atlas-compatible.rst
.. include:: /includes/fact-atlas-link.rst

.. list-table::
:header-rows: 1
:widths: 25 75
Expand Down
11 changes: 11 additions & 0 deletions source/usage-examples/find.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@ documents using the ``for await...of`` syntax, or one of the following

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

Compatibility
-------------

.. |page-topic| replace:: use the ``find()`` method
.. |link-topic-ing| replace:: finding documents in the Atlas UI

.. |atlas-url| replace:: :atlas:`Create, View, Update, and Delete Documents </atlas-ui/documents/#view--filter--and-sort-documents>`

.. include:: /includes/fact-atlas-compatible.rst
.. include:: /includes/fact-atlas-link.rst

Example
-------

Expand Down
11 changes: 11 additions & 0 deletions source/usage-examples/findOne.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ in the ``options`` object passed as the second parameter of the
``findOne`` method. For detailed reference documentation, see
`collection.findOne() <{+api+}/classes/Collection.html#findOne>`__.

Compatibility
-------------

.. |page-topic| replace:: use the ``findOne()`` method
.. |link-topic-ing| replace:: finding documents in the Atlas UI

.. |atlas-url| replace:: :atlas:`Create, View, Update, and Delete Documents </atlas-ui/documents/#view--filter--and-sort-documents>`

.. include:: /includes/fact-atlas-compatible.rst
.. include:: /includes/fact-atlas-link.rst

Example
-------

Expand Down
11 changes: 11 additions & 0 deletions source/usage-examples/insertOne.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ If the operation successfully inserts a document, it appends an
``insertedId`` field to the object passed in the method call, and sets the
value of the field to the ``_id`` of the inserted document.

Compatibility
-------------

.. |page-topic| replace:: use the ``insertOne()`` method
.. |link-topic-ing| replace:: inserting documents in the Atlas UI

.. |atlas-url| replace:: :atlas:`Create, View, Update, and Delete Documents </atlas-ui/documents/#insert-documents>`

.. include:: /includes/fact-atlas-compatible.rst
.. include:: /includes/fact-atlas-link.rst

Example
-------

Expand Down

0 comments on commit dfc878a

Please sign in to comment.