Entity

    Type Alias EntityCompositeFieldDefinition<TFields>

    Specification of composite field for an entity and whether it can be cached.

    type EntityCompositeFieldDefinition<TFields extends Record<string, any>> = {
        cache: boolean;
        compositeField: EntityCompositeField<TFields>;
    }

    Type Parameters

    • TFields extends Record<string, any>
    Index

    Properties

    cache: boolean

    Whether or not to cache loaded instances of the entity by this composite field. The column names in the composite field are used to derive a cache key for the cache entry. If true, the set of columns must be able uniquely identify the entity and the database must have a unique constraint on the set of columns.

    compositeField: EntityCompositeField<TFields>

    The composite field.

    MMNEPVFCICPMFPCPTTAAATR