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

    接口 GridFSBucketOptions

    interface GridFSBucketOptions {
        bucketName?: string;
        chunkSizeBytes?: number;
        readPreference?: ReadPreference;
        writeConcern?: WriteConcern | WriteConcernSettings;
    }

    层级 (查看层级一览)

    索引

    属性

    bucketName?: string

    The 'files' and 'chunks' collections will be prefixed with the bucket name followed by a dot.

    chunkSizeBytes?: number

    Number of bytes stored in each chunk. Defaults to 255KB

    readPreference?: ReadPreference

    Read preference to be passed to read operations

    Write Concern as an object