Skip to content

quickmodel / IQCreateManyError

Interface: IQCreateManyError<TInstance> ​

A single validation error entry produced by QModel.createMany.

Type Parameters ​

TInstance ​

TInstance

Properties ​

errors ​

errors: object[]

Combined list of failures for this instance.

  • field and value are present for @QRule failures.
  • Integrity failures only provide message.

field? ​

optional field?: string

message ​

message: string

value? ​

optional value?: unknown


index ​

index: number

Zero-based position in the original input array.


instance ​

instance: TInstance

The model instance that failed validation.