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

    接口 GridFSBucketWriteStreamOptions

    interface GridFSBucketWriteStreamOptions {
        aliases?: string[];
        chunkSizeBytes?: number;
        contentType?: string;
        id?: ObjectId;
        metadata?: Document;
        writeConcern?: WriteConcern | WriteConcernSettings;
    }

    层级 (查看层级一览)

    索引

    属性

    aliases?: string[]

    Array of strings to store in the file document's aliases field

    chunkSizeBytes?: number

    Overwrite this bucket's chunkSizeBytes for this file

    contentType?: string

    String to store in the file document's contentType field

    Custom file id for the GridFS file.

    metadata?: Document

    Object to store in the file document's metadata field

    Write Concern as an object