interface SchemaOptions {
    _id?: boolean;
    autoCreate?: boolean;
    autoIndex?: boolean;
    bufferCommands?: boolean;
    bufferTimeoutMS?: number;
    capped?:
        | number
        | boolean
        | { autoIndexId?: boolean; max?: number; size?: number };
    collection?: string;
    discriminatorKey?: string;
    emitIndexErrors?: boolean;
    excludeIndexes?: any;
    id?: boolean;
    minimize?: boolean;
    optimisticConcurrency?: boolean;
    read?: string;
    safe?: boolean | { j?: boolean; w?: string | number; wtimeout?: number };
    selectPopulatedPaths?: boolean;
    shardKey?: Record<string, unknown>;
    skipVersioning?: any;
    storeSubdocValidationError?: boolean;
    strict?: boolean | "throw";
    strictQuery?: boolean | "throw";
    timestamps?: boolean;
    toJSON?: ToElementOptions;
    toObject?: ToElementOptions;
    typeKey?: string;
    typePojoToMixed?: boolean;
    useNestedStrict?: boolean;
    usePushEach?: boolean;
    validateBeforeSave?: boolean;
    versionKey?: string | boolean;
}

Properties

_id?: boolean
autoCreate?: boolean
autoIndex?: boolean
bufferCommands?: boolean
bufferTimeoutMS?: number
capped?:
    | number
    | boolean
    | { autoIndexId?: boolean; max?: number; size?: number }
collection?: string
discriminatorKey?: string
emitIndexErrors?: boolean
excludeIndexes?: any
id?: boolean
minimize?: boolean
optimisticConcurrency?: boolean
read?: string
safe?: boolean | { j?: boolean; w?: string | number; wtimeout?: number }
selectPopulatedPaths?: boolean
shardKey?: Record<string, unknown>
skipVersioning?: any
storeSubdocValidationError?: boolean
strict?: boolean | "throw"
strictQuery?: boolean | "throw"
timestamps?: boolean
toObject?: ToElementOptions
typeKey?: string
typePojoToMixed?: boolean
useNestedStrict?: boolean
usePushEach?: boolean
validateBeforeSave?: boolean
versionKey?: string | boolean