Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GraphQLPagedRequest<TResult>

Presents a paged, stateful GraphQL request to be sent to the endpoint. Responsible for defining the requests, updating the page state, and parsing the responses.

Type parameters

  • TResult

    Response data type

Hierarchy

  • GraphQLPagedRequest

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

pageInfo

pageInfo: PageInfo | undefined

Abstract query

query: string

variables

variables: object

Methods

hasNextPage

  • hasNextPage(): boolean

parseResponse

  • parseResponse(rawData: object): TResult[]
  • Updates page-info with data from response object, and returns empty result set. Parse of data must be handled by derived class.

    Parameters

    • rawData: object

      Full response object

    Returns TResult[]

Generated using TypeDoc