Mongo.Repo.insert_or_update

You're seeing just the callback insert_or_update, go back to Mongo.Repo module for more information.
Link to this callback

insert_or_update(doc)

View Source (optional)

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())