File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
source/includes/driver-examples Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 134
134
- id: nodejs
135
135
content: |
136
136
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() ``.
140
139
141
- .. class :: copyable-code
142
140
.. code-block :: javascript
143
141
144
142
collection .createIndex ( { < key and index type specification> }, function (err , result ) {
157
155
callback (result);
158
156
}
159
157
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.
163
160
164
161
- id: php
165
162
content: |
You can’t perform that action at this time.
0 commit comments