Docs
API Reference
Interfaces
ExecutionResult

Interface: ExecutionResult<TData, TExtensions>

utils/src.ExecutionResult

The result of GraphQL execution.

  • errors is included when any errors occurred as a non-empty array.
  • data is the result of a successful execution of the query.
  • hasNext is true if a future payload is expected.
  • extensions is reserved for adding non-standard properties.

Type parameters

NameType
TDataany
TExtensionsany

Table of contents

Properties

Properties

data

Optional data: null | TData

Defined in

packages/utils/src/Interfaces.ts:61 (opens in a new tab)


errors

Optional errors: readonly GraphQLError[]

Defined in

packages/utils/src/Interfaces.ts:62 (opens in a new tab)


extensions

Optional extensions: TExtensions

Defined in

packages/utils/src/Interfaces.ts:64 (opens in a new tab)


hasNext

Optional hasNext: boolean

Defined in

packages/utils/src/Interfaces.ts:63 (opens in a new tab)


incremental

Optional incremental: readonly ExecutionResult<TData, TExtensions>[]

Defined in

packages/utils/src/Interfaces.ts:60 (opens in a new tab)


items

Optional items: null | TData

Defined in

packages/utils/src/Interfaces.ts:67 (opens in a new tab)


label

Optional label: string

Defined in

packages/utils/src/Interfaces.ts:65 (opens in a new tab)


path

Optional path: readonly (string | number)[]

Defined in

packages/utils/src/Interfaces.ts:66 (opens in a new tab)