Mongo.admin_command
You're seeing just the function
admin_command
, go back to Mongo module for more information.
Executes an admin command against the admin
database using always the primary. Retryable writes are disabled.
Example
iex> cmd = [
configureFailPoint: "failCommand",
mode: "alwaysOn",
data: [errorCode: 6, failCommands: ["commitTransaction"], errorLabels: ["TransientTransactionError"]]
]
iex> {:ok, _doc} = Mongo.admin_command(top, cmd)