Options for Model.build method

interface BuildOptions {
    include?: AllowArray<Includeable>;
    isNewRecord?: boolean;
    raw?: boolean;
}

Hierarchy (view full)

Properties

An array of include options. A single option is also supported - Used to build prefetched/included model instances. See set

isNewRecord?: boolean

Is this record new

raw?: boolean

If set to true, values will ignore field and virtual setters.

Default

false