Type Parameters

Hierarchy

Constructors

Properties

_projection: Projection
realCollection: Collection

Accessors

  • get caller(): Readonly<Caller>
  • Returns Readonly<Caller>

  • get collection(): default<S, N>
  • Returns default<S, N>

  • get dataSource(): default<S>
  • Returns default<S>

  • get filter(): Readonly<TPaginatedFilter<S, N>>
  • Returns Readonly<TPaginatedFilter<S, N>>

  • get projection(): readonly TFieldName<S, N>[]
  • Returns readonly TFieldName<S, N>[]

  • get records(): readonly TRow<S, N>[]
  • Returns readonly TRow<S, N>[]

Methods

  • Stop hooks execution and send error to the UI

    Example

    .throwError('My error message');
    

    Parameters

    • message: string

      the error message

    Returns never

  • Stop hooks execution and send Forbidden error to the UI

    Example

    .throwForbiddenError('My forbidden error message');
    

    Parameters

    • message: string

      the forbidden error message

    Returns never

  • Stop hooks execution and send Validation error to the UI

    Example

    .throwValidationError('My validation error message');
    

    Parameters

    • message: string

      the validation error message

    Returns never