Skip to content

Commit 52c1c94

Browse files
author
Chris Cho
authored
DOCSP-10080: Replace NodeJS with Node.js (#89)
* DOCSP-10080: Replace NodeJS with Node.js
1 parent a743073 commit 52c1c94

File tree

7 files changed

+16
-13
lines changed

7 files changed

+16
-13
lines changed

snooty.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "node"
2-
title = "NodeJS"
2+
title = "Node.js"
33

44
toc_landing_pages = ["/fundamentals/authentication", "/fundamentals/crud", "/usage-examples"]
55

source/faq.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ How Can I Prevent the Driver From Hanging During Connection or From Spending Too
4242
To prevent the driver from hanging during connection or to prevent the
4343
driver from spending too long trying to reach unreachable replica sets,
4444
you can set the ``connectTimeoutMS`` option of your
45-
``connection-settings``. Generally, you should ensure that the
45+
:doc:`connection options </fundamentals/connection#connection-options>`.
46+
Generally, you should ensure that the
4647
``connectTimeoutMS`` setting is not lower than the longest network
4748
latency you have to a member of the set. If one of the secondary members
4849
is on the other side of the planet and has a latency of 10000
@@ -171,7 +172,7 @@ How Can I Prevent a Slow Operation From Delaying Other Operations?
171172

172173
A slow operation may delay your other operations that occur after it, if
173174
the ``poolSize`` has not been set in the
174-
:doc:`Connection Options </fundamentals/connection#connection-options>`
175+
:doc:`connection options </fundamentals/connection#connection-options>`.
175176
MongoDB is synchronous and uses a single execution thread per socket,
176177
meaning that MongoDB will execute one single operation per socket at any
177178
point in time. Any other operation sent to that socket will have to wait

source/fundamentals/authentication.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ Enterprise Edition which includes:
3636
.. note::
3737
For instructions on MongoDB driver installation and deployment setup, see
3838
our :guides:`Connect to MongoDB guide </server/drivers/>`. Select your
39-
MongoDB deployment type and the NodeJS client.
39+
MongoDB deployment type and the Node.js client.

source/fundamentals/connection.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ Connection URI
1010
--------------
1111

1212
The **connection URI** is the set of instructions that the driver uses to
13-
connect to a MongoDB deployment. It instructs the driver on how it should
14-
connect to MongoDB and how it should behave while connected. The following
13+
connect to a MongoDB deployment. It instructs the driver on how it should
14+
connect to MongoDB and how it should behave while connected. The following
1515
example shows each part of the connection URI:
1616

1717
.. figure:: /includes/figures/connection_string_parts.png
1818

1919

2020
In this example, for the protocol, we use ``mongodb+srv`` which specifies the
21-
:manual:`DNS Seedlist Connection Format
21+
:manual:`DNS Seedlist Connection Format
2222
</reference/connection-string/#dns-seedlist-connection-format>`. This indicates
2323
that the hostname following it corresponds to the DNS SRV record of your
2424
MongoDB instance or deployment. If your instance or deployment does not have a
@@ -44,8 +44,8 @@ your MongoDB instance.
4444

4545
The last part of the connection string contains connection and authentication
4646
options as parameters. In the example above, we set two connection options:
47-
``poolSize=20`` and ``w=majority``.
48-
For more information on connection options, skip to the :ref:`Connection Options` section.
47+
``poolSize=20`` and ``w=majority``. For more information on connection
48+
options, skip to the :ref:`connection-options` section.
4949

5050
The code below shows how you can use the sample connection URI in a client to
5151
connect to MongoDB.
@@ -64,7 +64,7 @@ redundancy and high data availability.
6464

6565
To connect to a replica set deployment, specify the hostname and port numbers
6666
of each instance, separated by a comma, and the replica set name as the value
67-
of the ``replicaSet`` parameter in the connection string.
67+
of the ``replicaSet`` parameter in the connection string.
6868

6969
.. code-block:: none
7070

@@ -76,6 +76,8 @@ of the ``replicaSet`` parameter in the connection string.
7676
providing only a single host, you should provide the driver with the
7777
full list to ensure that it is able to connect even if one host fails.
7878

79+
.. _connection-options:
80+
7981
------------------
8082
Connection Options
8183
------------------

source/fundamentals/indexes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ MongoDB supports queries of geospatial coordinate data using :manual:`2dsphere <
137137
.. seealso::
138138

139139
The :doc:`/fundamentals/crud/read-operations/geo` guide for an
140-
overview of working with geospatial data with MongoDB and |node|.
140+
overview of working with geospatial data with MongoDB and Node.js.
141141

142142
To create a ``2dsphere`` index, the field you are indexing must be a :manual:`GeoJSON object </reference/geojson>`. The ``location.geo`` field in following sample document from the ``theaters`` collection in the ``sample_mflix`` database is a GeoJSON point object that describes the coordinates of the specified theater:
143143

source/fundamentals/promises.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ snippet:
155155
For more information on the callback method signature for the specific
156156
driver method, see the :node-api:`API documentation <>`.
157157

158-
.. note::
158+
.. note::
159159

160160
If you specify a callback, the method *does not* return a Promise.
161161

source/usage-examples/command.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ set.
2020

2121
.. note::
2222
Use the :manual:`mongo shell </reference/mongo-shell>` for
23-
administrative tasks instead of the NodeJS driver whenever possible.
23+
administrative tasks instead of the Node.js driver whenever possible.
2424

2525
You can specify additional options in the ``options`` object passed in
2626
the second parameter of the ``deleteMany()`` method. For more information

0 commit comments

Comments
 (0)