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

Method toJSON

src/bulk/common.ts:393–395  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

391 }
392
393 toJSON(): { code: number; index: number; errmsg?: string; op: Document } {
394 return { code: this.err.code, index: this.err.index, errmsg: this.err.errmsg, op: this.err.op };
395 }
396
397 toString(): string {
398 return `WriteError(${JSON.stringify(this.toJSON())})`;

Callers 15

toStringMethod · 0.95
prepareCommandMethod · 0.45
main.jsFile · 0.45
main.jsFile · 0.45
main.jsFile · 0.45
main.jsFile · 0.45
main.jsFile · 0.45
main.jsFile · 0.45
main.jsFile · 0.45
main.jsFile · 0.45
main.jsFile · 0.45
main.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected