Skip to main content

Function: getClient()

getClient(): GraphQLClient

Defined in: client/GraphQLClient.ts:606

Get the default GraphQL client instance.

Returns

GraphQLClient

Throws

Error if client hasn't been initialized

Deprecated

The global-singleton pattern is deprecated and will be removed in a future release. Create a client with createClient() and pass it explicitly to service factories instead.