mongodb-collection-model
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -86,3 +86,15 @@ var AmpersandModel = require('ampersand-model'); | ||
*/ | ||
wired_tiger: 'object' | ||
wired_tiger: 'object', | ||
type: { | ||
type: 'string', | ||
default: 'collection' | ||
}, | ||
view_on: { | ||
type: 'string', | ||
default: undefined | ||
}, | ||
pipeline: { | ||
type: 'array', | ||
default: undefined | ||
} | ||
}, | ||
@@ -125,13 +137,24 @@ collections: { | ||
serialize: function() { | ||
var res = this.getAttributes({ | ||
props: true, | ||
derived: true | ||
}, true); | ||
var res = this.getAttributes( | ||
{ | ||
props: true, | ||
derived: true | ||
}, | ||
true | ||
); | ||
each(this._children, function(value, key) { | ||
res[key] = this[key].serialize(); | ||
}, this); | ||
each(this._collections, function(value, key) { | ||
res[key] = this[key].serialize(); | ||
}, this); | ||
each( | ||
this._children, | ||
function(value, key) { | ||
res[key] = this[key].serialize(); | ||
}, | ||
this | ||
); | ||
each( | ||
this._collections, | ||
function(value, key) { | ||
res[key] = this[key].serialize(); | ||
}, | ||
this | ||
); | ||
return res; | ||
@@ -138,0 +161,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"author": "Lucas Hrabovsky <lucas@mongodb.com>", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"bugs": "https://github.com/mongodb-js/mongodb-collection-model/issues", | ||
@@ -8,0 +8,0 @@ "homepage": "https://github.com/mongodb-js/mongodb-collection-model", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
251
18615
7