periodicjs.core.data
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -373,3 +373,2 @@ 'use strict'; | ||
if (!update || (update && typeof update !== 'object')) throw new Error('Either updateattributes or updatedoc option must be set in order to execute multi update'); | ||
console.log({ query, update }); | ||
Model.update(update, query) | ||
@@ -376,0 +375,0 @@ .then(result => cb(null, result)) |
@@ -95,4 +95,4 @@ { | ||
}, | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"license": "MIT" | ||
} |
@@ -66,3 +66,3 @@ # periodicjs.core.data | ||
let ExampleModel = mongoose.model('Example', ExampleSchema); | ||
let config = { limit: 500, sort: '-createdat'}; | ||
let config = { limit: 500, sort: '-createdat' }; | ||
let Adapter = AdapterIterface.create(Object.assign({ adapter: 'mongo', model: ExampleModel }, config)); //example core datum for the Example mongoose schema | ||
@@ -69,0 +69,0 @@ let exampleDocument = { //example mongo document |
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
1622590
3790