From b501b6934c801761a6bd1b27ed4b4886da2bc273 Mon Sep 17 00:00:00 2001 From: Julian Grinblat Date: Mon, 21 Nov 2016 13:55:05 +0900 Subject: [PATCH] Fix createIndex name option type --- lib/collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/collection.js b/lib/collection.js index fbe19fa1abe..93fef551216 100644 --- a/lib/collection.js +++ b/lib/collection.js @@ -1576,7 +1576,7 @@ define.classMethod('isCapped', {callback: true, promise:true}); * @param {number} [options.max=null] For geospatial indexes set the high bound for the co-ordinates. * @param {number} [options.v=null] Specify the format version of the indexes. * @param {number} [options.expireAfterSeconds=null] Allows you to expire data on indexes applied to a data (MongoDB 2.2 or higher) - * @param {number} [options.name=null] Override the autogenerated index name (useful if the resulting name is larger than 128 bytes) + * @param {string} [options.name=null] Override the autogenerated index name (useful if the resulting name is larger than 128 bytes) * @param {object} [options.partialFilterExpression=null] Creates a partial index based on the given filter object (MongoDB 3.2 or higher) * @param {object} [options.collation=null] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields). * @param {Collection~resultCallback} [callback] The command result callback