Member Junction
    Preparing search index...

    The before/after picture of one save, as seen by a filter.

    type EntityChangeContext = {
        ChangedFields: readonly string[];
        IsCreate: boolean;
        NewValues: Readonly<Record<string, unknown>>;
        OldValues: Readonly<Record<string, unknown>>;
    }
    Index

    Properties

    ChangedFields: readonly string[]

    Names of fields whose value actually differs.

    Computed from a value comparison rather than from the dirty flag: a field can be assigned its existing value and still read as dirty, and a filter that fired on that would be reporting a change that did not happen.

    IsCreate: boolean

    True when the record is being created, so every field is "new" and none of them changed.

    NewValues: Readonly<Record<string, unknown>>

    Field values as they are now.

    OldValues: Readonly<Record<string, unknown>>

    Field values as they were when the record was loaded. Empty on a create — there is no "before".