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.

Constants

OS_TYPE = {% if host_flag?(:linux) %} "Linux" {% elsif host_flag?(:darwin) %} "Darwin" {% elsif host_flag?(:win32) %} "Windows" {% else %} "Unknown" {% end %}

Class methods

name
Source

Instance methods

command(appname : String | Nil = nil)

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

Source
result(bson : BSON)

Transforms the server result.

Source

Nested types