MCPcopy
hub / github.com/mongodb/node-mongodb-native / serializeBson

Method serializeBson

src/cmap/commands.ts:632–638  ·  view source on GitHub ↗
(document: Document)

Source from the content-addressed store, hash-verified

630 }
631
632 serializeBson(document: Document): Uint8Array {
633 return BSON.serialize(document, {
634 checkKeys: this.checkKeys,
635 serializeFunctions: this.serializeFunctions,
636 ignoreUndefined: this.ignoreUndefined
637 });
638 }
639
640 static getRequestId(): number {
641 _requestId = (_requestId + 1) & 0x7fffffff;

Callers 1

makeSectionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected