mongo v0.5.0 Release Notes

Release Date: 2014-09-30 // over 9 years ago
    • complete rework of the API
      • drop the Mongodb-like notation in favor of a more Elixir syntax
      • no more use of records
      • implements Enumerable protocol for:
      • %Mongo.Find{}: to retrieve all docs of a query
      • %Mongo.Response{}: to retrieve all docs of a particular batch (specific use)
      • %Mongo.Cursoer{}: to retrive all batches (specific use)

    in this version you write this:

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

    rather than:

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

    see https://github.com/checkiz/elixir-mongo/issues/11