Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/*jslint node: true */
/*jshint esversion: 6 */
/*global emit*/
/*global _*/
'use strict';
let backend = require('backend-js');
let ModelEntity = backend.ModelEntity;
let QueryExpression = backend.QueryExpression;
let AggregateExpression = backend.AggregateExpression;
let mongoose = require('mongoose');
mongoose.Promise = global.Promise;
let Schema = mongoose.Schema;
let autoIncrement = require('mongodb-autoincrement');
mongoose.plugin(autoIncrement.mongoosePlugin);
require('mongoose-pagination');
var cacheOpts = {
max: 50,
maxAge: 1000 * 60 * 2
};
require('mongoose-cache').install(mongoose, cacheOpts);
module.exports.LogicalOperators = {
AND: '$and',