Skip to content

Commit 5ef9e25

Browse files
authored
* DOCSP-21006 changing href for 139 on node driver ex * update link * remove additional link
1 parent f6b612c commit 5ef9e25

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

source/includes/driver-examples/driver-example-indexes-1.rst

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,9 @@
134134
- id: nodejs
135135
content: |
136136
To create an index using the
137-
`Node.JS driver <https://mongodb.github.io/node-mongodb-native/>`_,
138-
use
139-
`createIndex() <http://mongodb.github.io/node-mongodb-native/2.1/tutorials/create-indexes/>`_.
137+
`Node.JS driver <https://docs.mongodb.com/drivers/node/current/>`_,
138+
use ``createIndex()``.
140139

141-
.. class:: copyable-code
142140
.. code-block:: javascript
143141
144142
collection.createIndex( { <key and index type specification> }, function(err, result) {
@@ -157,9 +155,8 @@
157155
callback(result);
158156
}
159157
160-
The `createIndex() <http://mongodb.github.io/node-mongodb-native/2.1/tutorials/create-indexes/>`_
161-
method only creates an index if an index of the same
162-
specification does not already exist.
158+
The ``createIndex()`` method only creates an index if an index
159+
of the same specification does not already exist.
163160
164161
- id: php
165162
content: |

0 commit comments

Comments
 (0)