mirror of
https://github.com/sstent/node_app.git
synced 2026-01-27 07:31:58 +00:00
removing ned for second mongo
This commit is contained in:
2
node_modules/mongoskin/examples/update.js
generated
vendored
2
node_modules/mongoskin/examples/update.js
generated
vendored
@@ -3,7 +3,7 @@ var articles = db.collection('articles');
|
||||
articles.insert({foo: 'bar', val: 'val1'}, function(err, result) {
|
||||
|
||||
console.log(result);
|
||||
articles.update({foo:'bar'}, {foo: 'bar', val:'val2'}, {safe: true}, function(err, result) {
|
||||
articles.update({foo:'bar'}, {foo: 'bar', val:'val2'}, {strict: true}, function(err, result) {
|
||||
|
||||
console.log(result);
|
||||
articles.find({foo: 'bar'}).toArray(function(err, docs){
|
||||
|
||||
Reference in New Issue
Block a user