src/adapters/nosql/mongo.js
/**
   * Remove records other than <record>.tsk = "transactionKey"
   * @param {String} collectionName
   * @param {int} transactionKey transaction key - which is usualy a timestamp
   */
Remove records other than .tsk = "transactionKey"
@param {String} collectionName
@param {int} transactionKey transaction key - which is usualy a timestamp
Remove records other than . tsk = " transactionKey " @param { String } collectionName @param { int } transactionKey transaction key - which is usualy a timestamp
cleanupByTransactionkey(collectionName, transactionKey){
    this.db.collection(collectionName).remove({tsk: transactionKey},function(err, obj) {
      if (err) throw err;
      logger.info(obj.result.n + " document(s) deleted");
    });
  }
cleanupByTransactionkey ( collectionName , transactionKey ) { this . db . collection ( collectionName ) . remove ( { tsk : transactionKey } , function ( err , obj ) { if ( err ) throw err ; logger . info ( obj . result . n + " document(s) deleted" ) ; } ) ; }
Remove records other than <record>.tsk = "transactionKey"
 @param {String} collectionName
 @param {int} transactionKey transaction key - which is usualy a timestamp
Remove records other than <record > . tsk = " transactionKey " @param { String } collectionName @param { int } transactionKey transaction key - which is usualy a timestamp