API 参考
    正在准备搜索索引...

    A MongoDB WriteConcern, which describes the level of acknowledgement requested from MongoDB for write operations.

    索引

    构造函数

    属性

    方法

    构造函数

    • Constructs a WriteConcern from the write concern properties.

      参数

      • 可选w: W

        request acknowledgment that the write operation has propagated to a specified number of mongod instances or to mongod instances with specified tags.

      • 可选wtimeout: number

        specify a time limit to prevent write operations from blocking indefinitely

      • 可选j: boolean

        request acknowledgment that the write operation has been written to the on-disk journal

      • 可选fsync: boolean | 1

        equivalent to the j option

      返回 WriteConcern

    属性

    fsync?: boolean | 1

    equivalent to the j option

    j?: boolean

    request acknowledgment that the write operation has been written to the on-disk journal

    w?: W

    request acknowledgment that the write operation has propagated to a specified number of mongod instances or to mongod instances with specified tags.

    wtimeout?: number

    specify a time limit to prevent write operations from blocking indefinitely

    方法