Closed rizafahmi closed 10 years ago
This tripped me up when first using this module Mongo.connect returns a tuple of {:ok/:error, mongo_process /reason}
{:ok, mongo} = Mongo.connect("localhost", 3001) is what you need
this should probably be fixed in the readme
use either form:
db = Mongo.connect!("localhost", 3001)
or
{:ok, mongo} = Mongo.connect("localhost", 3001)
read.me has been updated