Mongo.Ecto.truncate
You're seeing just the function
truncate
, go back to Mongo.Ecto module for more information.
Specs
truncate(Ecto.Repo.t(), Keyword.t()) :: [String.t()]
Drops all the collections in current database.
Skips system collections and schema_migrations
collection.
Especially useful in testing.
Returns list of dropped collections.