Permalink
Browse files

add examples/insert.js, close #13

  • Loading branch information...
1 parent 4057974 commit ad746c933ab53a2bb6a1609245500d1f4f216657 @guileen committed Mar 14, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 examples/insert.js
View
@@ -0,0 +1,9 @@
+var mongoskin = require('../lib/mongoskin')
+ , db = mongoskin.db('localhost/test');
+
+db.collection('test').insert({foo: 'bar'}, function(err, result) {
+ console.log(result);
+ db.close(function() {
+ console.log('connection closed');
+ });
+});

0 comments on commit ad746c9

Please sign in to comment.