Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dropping the record hack that allows writing Mongo.connect!.db("test").collection("anycoll") #11

Closed
jerp opened this issue Sep 22, 2014 · 1 comment

Comments

@jerp
Copy link

jerp commented Sep 22, 2014

A while back I submitted a question on the elixirllang-talk google group asking about the way I implemented this driver in Elixir.

https://groups.google.com/forum/#!topic/elixir-lang-talk/QKNM_NsIRGE

I'm about to implement what was recommended by José Valim, this is, write

coll = Mongo.connect! |> Mongo.db("test") |> Mongo.Db.collection("anycoll")

rather than

coll = Mongo.connect!.db("test").collection("anycoll")

This notation is a bit more verbose, less mongo but more Elixir

I believe it would also simplify the code

@jerp
Copy link
Author

jerp commented Sep 30, 2014

done in v0.5.0

@jerp jerp closed this as completed Sep 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant