Documentation
API Reference
Interfaces
ExecutionResult

graphql-tools-monorepo / utils/src / 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:62


errors

Optional errors: readonly GraphQLError[]

Defined in

packages/utils/src/Interfaces.ts:63


extensions

Optional extensions: TExtensions

Defined in

packages/utils/src/Interfaces.ts:65


hasNext

Optional hasNext: boolean

Defined in

packages/utils/src/Interfaces.ts:64


incremental

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

Defined in

packages/utils/src/Interfaces.ts:61


items

Optional items: null | TData

Defined in

packages/utils/src/Interfaces.ts:68


label

Optional label: string

Defined in

packages/utils/src/Interfaces.ts:66


path

Optional path: readonly (string | number)[]

Defined in

packages/utils/src/Interfaces.ts:67