Options
All
  • Public
  • Public/Protected
  • All
Menu

Type Parameters

Hierarchy

Index

Constructors

Properties

applyNextFetchPolicy: any
concast?: any
fetch: any
getLast: any
isTornDown: any
last?: any
observe: any
observer?: any
observers: any
options: WatchQueryOptions<TVariables, TData>
pollingInfo?: any
queryId: string
queryInfo: any
queryManager: any
queryName?: string
reportError: any
reportResult: any
subscriptions: any
tearDownQuery: any
updateLastResult: any
updatePolling: any

Accessors

  • Returns TypedDocumentNode<TData, TVariables>

  • get variables(): undefined | TVariables
  • Returns undefined | TVariables

Methods

  • Returns Observable<ApolloQueryResult<TData>>

  • concat<R>(...observable: Observable<R>[]): Observable<R>
  • Type Parameters

    • R

    Parameters

    • Rest ...observable: Observable<R>[]

    Returns Observable<R>

  • Type Parameters

    • TFetchData = TData

    • TFetchVars = TVariables

    Parameters

    Returns internal.Promise<ApolloQueryResult<TFetchData>>

  • Parameters

    • Optional saveAsLastResult: boolean

    Returns ApolloQueryResult<TData>

  • getLastError(variablesMustMatch?: boolean): undefined | ApolloError
  • Parameters

    • Optional variablesMustMatch: boolean

    Returns undefined | ApolloError

  • Parameters

    • Optional variablesMustMatch: boolean

    Returns undefined | ApolloQueryResult<TData>

  • hasObservers(): boolean
  • Returns boolean

  • isDifferentFromLastResult(newResult: ApolloQueryResult<TData>, variables?: TVariables): undefined | boolean
  • Parameters

    Returns undefined | boolean

  • Type Parameters

    • R

    Parameters

    Returns Observable<R>

  • resetLastResults(): void
  • Returns void

  • resetQueryStoreErrors(): void
  • Returns void

  • startPolling(pollInterval: number): void
  • Parameters

    • pollInterval: number

    Returns void

  • stopPolling(): void
  • Returns void

  • Parameters

    Returns Subscription

  • Parameters

    • onNext: ((value: ApolloQueryResult<TData>) => void)
    • Optional onError: ((error: any) => void)
        • (error: any): void
        • Parameters

          • error: any

          Returns void

    • Optional onComplete: (() => void)
        • (): void
        • Returns void

    Returns Subscription

  • subscribeToMore<TSubscriptionData, TSubscriptionVariables>(options: SubscribeToMoreOptions<TData, TSubscriptionVariables, TSubscriptionData>): (() => void)
  • Type Parameters

    • TSubscriptionData = TData

    • TSubscriptionVariables = TVariables

    Parameters

    Returns (() => void)

      • (): void
      • Returns void

  • updateQuery<TVars>(mapFn: ((previousQueryResult: TData, options: Pick<WatchQueryOptions<TVars, TData>, "variables">) => TData)): void
  • Type Parameters

    • TVars = TVariables

    Parameters

    Returns void

  • Type Parameters

    • R

    Parameters

    Returns undefined

  • call<R>(instance: Observable<R>, subscriber: Subscriber<R>): undefined
  • Type Parameters

    • R

    Parameters

    Returns undefined

  • Type Parameters

    • R

    Parameters

    Returns Observable<R>

  • of<R>(...items: R[]): Observable<R>
  • Type Parameters

    • R

    Parameters

    • Rest ...items: R[]

    Returns Observable<R>

Generated using TypeDoc