Interface WriteConcernErrorResult

The type of the result property of MongoWriteConcernError

interface WriteConcernErrorResult {
    code?: number;
    errorLabels?: string[];
    ok: number;
    writeConcernError: {
        code: number;
        codeName?: string;
        errInfo?: Document;
        errmsg: string;
    };
    [x: string | number]: unknown;
}

Indexable

  • [x: string | number]: unknown

Properties

code?: number
errorLabels?: string[]
ok: number
writeConcernError: {
    code: number;
    codeName?: string;
    errInfo?: Document;
    errmsg: string;
}