Mongo.Ecto.command
You're seeing just the function
command
, go back to Mongo.Ecto module for more information.
Specs
command(Ecto.Repo.t(), BSON.document(), Keyword.t()) :: BSON.document()
Runs a command in the database.
Usage
Mongo.Ecto.command(Repo, drop: "collection")
Options
:database
- run command against a specific database (default: repo's database):log
- should command queries be logged (default: true)
For list of available commands plese see: http://docs.mongodb.org/manual/reference/command/