Interface IApolloClient<T>

Type Parameters

  • T

Hierarchy

  • ApolloClient<T>
    • IApolloClient

Properties

cache: ApolloCache<T>
defaultOptions: DefaultOptions
disableNetworkFetches: boolean
jwt_token?: string
link: ApolloLink
path?: string
queryDeduplication: boolean
ssl?: boolean
typeDefs: string | string[] | DocumentNode | DocumentNode[]
version: string

Methods

  • Parameters

    • cb: (() => any)
        • (): any
        • Returns any

    Returns void

  • Parameters

    • payload: GraphQLRequest<Record<string, any>>

    Returns Observable<ExecutionResult<{
        [key: string]: any;
    }, {
        [key: string]: any;
    }>>

  • Parameters

    • resolvers: Resolvers | Resolvers[]

    Returns void

  • Returns Promise<any[]>

  • Parameters

    • Optional optimistic: boolean

    Returns T

  • Parameters

    • Optional include: RefetchQueriesInclude

    Returns Map<string, ObservableQuery<any, OperationVariables>>

  • Returns Resolvers

  • Type Parameters

    • TData = any

    • TVariables extends OperationVariables = OperationVariables

    • TContext extends Record<string, any> = DefaultContext

    • TCache extends ApolloCache<any> = ApolloCache<any>

    Parameters

    • options: MutationOptions<TData, TVariables, TContext, ApolloCache<any>>

    Returns Promise<FetchResult<TData>>

  • Parameters

    • cb: (() => Promise<any>)
        • (): Promise<any>
        • Returns Promise<any>

    Returns (() => void)

      • (): void
      • Returns void

  • Parameters

    • cb: (() => Promise<any>)
        • (): Promise<any>
        • Returns Promise<any>

    Returns (() => void)

      • (): void
      • Returns void

  • Type Parameters

    • T = any

    • TVariables extends OperationVariables = OperationVariables

    Parameters

    • options: QueryOptions<TVariables, T>

    Returns Promise<ApolloQueryResult<T>>

  • Parameters

    • Optional includeStandby: boolean

    Returns Promise<ApolloQueryResult<any>[]>

  • Type Parameters

    • T = any

    • TVariables = OperationVariables

    Parameters

    • options: Fragment<TVariables, T>
    • Optional optimistic: boolean

    Returns T

  • Type Parameters

    • T = any

    • TVariables = OperationVariables

    Parameters

    • options: Query<TVariables, T>
    • Optional optimistic: boolean

    Returns T

  • Type Parameters

    • TCache extends ApolloCache<any> = ApolloCache<T>

    • TResult = Promise<ApolloQueryResult<any>>

    Parameters

    • options: RefetchQueriesOptions<TCache, TResult>

    Returns RefetchQueriesResult<TResult>

  • Returns Promise<ApolloQueryResult<any>[]>

  • Parameters

    • serializedState: T

    Returns ApolloCache<T>

  • Parameters

    • newLink: ApolloLink

    Returns void

  • Parameters

    • fragmentMatcher: FragmentMatcher

    Returns void

  • Parameters

    • resolvers: Resolvers | Resolvers[]

    Returns void

  • Returns void

  • Type Parameters

    • T = any

    • TVariables extends OperationVariables = OperationVariables

    Parameters

    • options: SubscriptionOptions<TVariables, T>

    Returns Observable<FetchResult<T>>

  • Type Parameters

    • T = any

    • TVariables extends OperationVariables = OperationVariables

    Parameters

    • options: WatchQueryOptions<TVariables, T>

    Returns ObservableQuery<T, TVariables>

  • Type Parameters

    • TData = any

    • TVariables = OperationVariables

    Parameters

    • options: WriteFragmentOptions<TData, TVariables>

    Returns Reference

  • Type Parameters

    • TData = any

    • TVariables = OperationVariables

    Parameters

    • options: WriteQueryOptions<TData, TVariables>

    Returns Reference

Generated using TypeDoc