interface SchemaDefinition<T = { [key: string]: any }> {
    discriminators?: Record<
        string,
        Record<
            string,
            SchemaField<
                | SchemaDataType
                | {
                    [key: string]: SchemaField<SchemaDataType | { [key: string]: SchemaField<SchemaDataType | ...>; }>;
                },
            >,
        >,
    >;
    indexes?: (SchemaIndexes | CustomSchemaIndex)[];
    name: CollectionNames;
    options?: SchemaOptions;
    schema: T;
}

Type Parameters

  • T = { [key: string]: any }

Properties

discriminators?: Record<
    string,
    Record<
        string,
        SchemaField<
            | SchemaDataType
            | {
                [key: string]: SchemaField<SchemaDataType | { [key: string]: SchemaField<SchemaDataType | ...>; }>;
            },
        >,
    >,
>
options?: SchemaOptions
schema: T