thoughts/node_modules/mongoose/lib/internal.js
node_modules/mongoose/lib/internal.jsRaw
1/*!
2 * Dependencies
3 */
4
5var StateMachine = require('./statemachine');
6var ActiveRoster = StateMachine.ctor('require', 'modify', 'init', 'default', 'ignore');
7
8module.exports = exports = InternalCache;
9
10function InternalCache() {
11 this.strictMode = undefined;
12 this.selected = undefined;
13 this.shardval = undefined;
14 this.saveError = undefined;
15 this.validationError = undefined;
16 this.adhocPaths = undefined;
17 this.removing = undefined;
18 this.inserting = undefined;
19 this.version = undefined;
20 this.getters = {};
21 this._id = undefined;
22 this.populate = undefined; // what we want to populate in this doc
23 this.populated = undefined;// the _ids that have been populated
24 this.wasPopulated = false; // if this doc was the result of a population
25 this.scope = undefined;
26 this.activePaths = new ActiveRoster;
27
28 // embedded docs
29 this.ownerDocument = undefined;
30 this.fullPath = undefined;
31}