Closed chilagrow closed 2 months ago
Let’s export
opMsgSection
,opMsgSection.identifier
,opMsgSection.kind
, and addOpMsgSection.Documents() []wirebson.RawDocument
method instead
Yeah, we need what you've mentioned. Let's do that.
Actually if we expose OpMsgSection, that's sufficient.
type OpMsgSection struct {
Identifier string
Documents []wirebson.RawDocument
Kind byte
}
Closes FerretDB/engineering#179.
To convert
RawDocument
totypes.Document
, both sections need to be exposed.