module Mongo::Commands::IsMaster
Overview
isMaster returns a document that describes the role of the mongod instance.
NOTE for more details, please check the official MongoDB documentation.
Extended Modules
Defined in:
cryomongo/commands/replication/is_master.crConstant Summary
-
OS_TYPE =
{% if host_flag?(:linux) %} "Linux" {% else %}{% if host_flag?(:darwin) %} "Darwin" {% else %}{% if host_flag?(:win32) %} "Windows" {% else %} "Unknown" {% end %}{% end %}{% end %}
Class Method Summary
Instance Method Summary
-
#command(appname : String | Nil = nil)
Returns a pair of OP_MSG body and sequences associated with the command and arguments.
-
#result(bson : BSON)
Transforms the server result.
Class Method Detail
Instance Method Detail
def command(appname : String | Nil = nil)
#
Returns a pair of OP_MSG body and sequences associated with the command and arguments.