Skip to content

OpMsg

class OpMsg(val body: MessageSection.Body, val sequences: Sequence<MessageSection.DocumentSequence> = emptySequence()) : Message

The OP_MSG message, introduced in MongoDB 3.6.

External resources

Constructors

OpMsg

constructor(body: MessageSection.Body, sequences: Sequence<MessageSection.DocumentSequence> = emptySequence())
constructor(body: MessageSection.Body, vararg sequences: MessageSection.DocumentSequence)

Properties

body

opcode

open override val opcode: Int

The message type.

The possible opcodes are documented in the wire protocol documentation.

sequences

Functions

toString

open override fun toString(): String