Interface GridFSBucketWriteStreamOptions

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

Hierarchy (view full)

Properties

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.

Object to store in the file document's metadata field

Write Concern as an object