Dropping down to the Mongo driver from Ecto

Recently, I was needing to drop down to the raw Mongo driver instead of working through Ecto. It turns out it's really simple. Just use MyApp.Repo.Pool to access the Mongo connection.

Mongo.update_one(MyApp.Repo.Pool, collection, query, update, opts)  

Scott Messinger

Read more posts by this author.