Files
lsp/node_modules/mongodb/lib/operations/indexes.js
Arnaud Nelissen 3af7ddab06 Initial commit
2021-11-17 11:25:08 +01:00

23 lines
555 B
JavaScript

'use strict';
const OperationBase = require('./operation').OperationBase;
const indexInformation = require('./common_functions').indexInformation;
class IndexesOperation extends OperationBase {
constructor(collection, options) {
super(options);
this.collection = collection;
}
execute(callback) {
const coll = this.collection;
let options = this.options;
options = Object.assign({}, { full: true }, options);
indexInformation(coll.s.db, coll.collectionName, options, callback);
}
}
module.exports = IndexesOperation;