module Mongo::Commands::IsMaster


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:


Constant 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

Class Method Detail

def #

Instance Method Detail

def command(appname : String? = nil) #

Returns a pair of OP_MSG body and sequences associated with the command and arguments.

def result(bson : BSON) #

Transforms the server result.