Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
Nedb test
node v4.9.1
version:
master
endpoint
share
tweet
var Nedb = require('nedb') , db = new Nedb({filename: 'data.nedb', autoload: true}); db.update({key: 42}, {$inc: {counter: 1}}, {upsert: true}, function () { db.findOne({key:42}, function (err, doc) { console.log(doc); }); });
Loading…
no comments
sign in
to comment