Mongo.Repo.delete
You're seeing just the callback
delete
, go back to Mongo.Repo module for more information.
Specs
delete(doc :: Mongo.Collection.t(), opts :: Keyword.t()) :: {:ok, Mongo.Collection.t()} | {:error, any()}
Deletes a document struct from the database and returns a {:ok, doc}
tuple.
For all options see Options
Example
MyApp.Repo.delete(post)