123456789101112131415161718192021222324252627282930 |
- 'use strict';
-
- const utils = require('../utils');
-
- class PopulateOptions {
- constructor(obj) {
- this._docs = {};
-
- if (obj == null) {
- return;
- }
- obj = utils.clone(obj);
- Object.assign(this, obj);
- if (typeof obj.subPopulate === 'object') {
- this.populate = obj.subPopulate;
- }
- }
- }
-
-
-
- module.exports = PopulateOptions;
|