You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
555 B
22 lines
555 B
'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;
|
|
|