How to use the cappedCollectionSize function from nomnom

Find comprehensive JavaScript nomnom.cappedCollectionSize code examples handpicked from public code repositorys.

5
6
7
8
9
10
11
12
13
14
var opts = require('../options');

var reportOptions = {};
if (opts.cappedCollectionSize !== 0) {
  logger.info('Capping report collection at', opts.cappedCollectionSize);
  reportOptions.capped = opts.cappedCollectionSize;
}

var ReportSchema = new Schema({
  project: {type: Schema.Types.ObjectId, ref: 'Project'},
fork icon7
star icon53
watch icon5

+ 15 other calls in file