I may be doing something completely wrong here as I am new to Elixir; but when I do
{:ok, mongo} = Mongo.connect("db-stage.member0.mongolayer.com", 27017)db = mongo |> Mongo.db(database)db |> Mongo.db.auth('user', 'password')
I get
undefined function: Mongo.Server.call/1
I don't see Mongo.Server.call defined in the code. What am I missing?
I may be doing something completely wrong here as I am new to Elixir; but when I do
{:ok, mongo} = Mongo.connect("db-stage.member0.mongolayer.com", 27017)
db = mongo |> Mongo.db(database)
db |> Mongo.db.auth('user', 'password')
I getundefined function: Mongo.Server.call/1
I don't see Mongo.Server.call defined in the code. What am I missing?