reactive-mongodb
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -60,3 +60,3 @@ const Observable = require('rxjs/Rx').Observable; | ||
if (hyerrors === null) { | ||
this.collection.update({ _id: ObjectId(id) }, newObject, { multi: true }, (err, data) => { | ||
this.collection.update({ _id: ObjectId(id) }, newObject, { multi: false }, (err, data) => { | ||
if (err) { | ||
@@ -63,0 +63,0 @@ observer.error(err); |
{ | ||
"name": "reactive-mongodb", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "An ODM for MongoDB with very strict data types/stucture. It is Based on Observable (with RxJS)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -48,3 +48,3 @@ # Reactive-MongoDB | ||
```javascript | ||
const Collection = require('../index.js').Collection; | ||
const Collection = require('reactive-mongodb').Collection; | ||
//Collection is a class that represents your collection in the database | ||
@@ -51,0 +51,0 @@ const Users = new Collection('users'); |
@@ -23,8 +23,4 @@ const Collection = require('../index.js').Collection; | ||
var Test = new Collection('test'); | ||
Test.updateOne({ name: 'hello i\'m mocha' }, { name: 'I changed from Mocha' }).subscribe((data) => { | ||
var rules = new Objects.Rule; | ||
var hyerrors = hyvalidator.validate(data, rules); | ||
if (hyerrors === null) { | ||
done(); | ||
} | ||
Test.updateOne({ name: 'hello i\'m mocha' }, { name: 'I changed from Mocha' }).subscribe(empty,empty,() => { | ||
done(); | ||
}); | ||
@@ -31,0 +27,0 @@ }); |
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
16878
239