We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa44087 commit c6ce263Copy full SHA for c6ce263
lib/mongodb.js
@@ -2228,7 +2228,7 @@ MongoDB.prototype.autoupdate = function(models, cb) {
2228
debug('createIndex: ', index);
2229
}
2230
const callbackCreateIndex = util.callbackify(() => self
2231
- .collection(modelName).createIndex(index.fields || index.keys));
+ .collection(modelName).createIndex(index.fields || index.keys, index.options));
2232
callbackCreateIndex(indexCallback);
2233
},
2234
modelCallback,
0 commit comments