From 6536393bf92b92c97a1eb5f04c6938dbb9e13e1a Mon Sep 17 00:00:00 2001 From: Oren Griffin Date: Tue, 16 Aug 2016 11:44:31 +0300 Subject: [PATCH] correct mongo uri string --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 61d89bf6..8041c137 100644 --- a/README.md +++ b/README.md @@ -33,12 +33,12 @@ There are two ways to instantiate a sharedb-mongo wrapper: 1. The simplest way is to invoke the module and pass in your mongo DB arguments as arguments to the module function. For example: -var db = require('sharedb-mongo')('localhost:27017/test'); +var db = require('sharedb-mongo')('mongodb://localhost:27017/test'); 2. If you already have a function that creates a mongo connection that you want to use, you alternatively can pass it into sharedb-mongo: -require('mongodb').connect('localhost:27017/test', function(err, mongo) { +require('mongodb').connect('mongodb://localhost:27017/test', function(err, mongo) { if (err) throw err; var db = require('sharedb-mongo')({mongo: function(callback) { // callback expects (err, db)