Mongo.Repo.update
You're seeing just the callback
update
, go back to Mongo.Repo module for more information.
Specs
update(doc :: Mongo.Collection.t()) :: {:ok, Mongo.Collection.t()} | {:error, any()}
Updates a document struct and returns a {:ok, doc}
tuple.
Example
post = MyApp.Repo.insert!(Post.new())
MyApp.Repo.update(%{post | title: "new"})