Mongo.Repo.insert_or_update
You're seeing just the callback
insert_or_update
, go back to Mongo.Repo module for more information.
Specs
insert_or_update(doc :: Mongo.Collection.t()) :: {:ok, Mongo.Collection.t()} | {:error, any()}
Upserts a document struct and returns a {:ok, doc}
tuple.
Example
MyApp.Repo.insert_or_update(Post.new())