Skip to content

Commit b501b69

Browse files
committed
Fix createIndex name option type
1 parent 5b84ba5 commit b501b69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/collection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,7 @@ define.classMethod('isCapped', {callback: true, promise:true});
15761576
* @param {number} [options.max=null] For geospatial indexes set the high bound for the co-ordinates.
15771577
* @param {number} [options.v=null] Specify the format version of the indexes.
15781578
* @param {number} [options.expireAfterSeconds=null] Allows you to expire data on indexes applied to a data (MongoDB 2.2 or higher)
1579-
* @param {number} [options.name=null] Override the autogenerated index name (useful if the resulting name is larger than 128 bytes)
1579+
* @param {string} [options.name=null] Override the autogenerated index name (useful if the resulting name is larger than 128 bytes)
15801580
* @param {object} [options.partialFilterExpression=null] Creates a partial index based on the given filter object (MongoDB 3.2 or higher)
15811581
* @param {object} [options.collation=null] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
15821582
* @param {Collection~resultCallback} [callback] The command result callback

0 commit comments

Comments
 (0)