UNPKG

e-commercee

Version:

This package contains a backend of what would be the logic of a e-commercee software, the architecture used is made in 3 layers

23 lines (16 loc) 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;