Function: createClient()
createClient(
config):GraphQLClient
Defined in: client/GraphQLClient.ts:556
Create a new GraphQL client instance. Preferred entry point in v0.10.0.
Usage: const client = createClient({ endpoint: '/api/graphql', defaultLanguage: 'NL' }); const productService = productServiceFactory(client); const product = await productService.getProduct({ productId: 1 });