function loadGraphqlModule
loadGraphqlModule(importer?): Promise<GraphqlRuntime>

Load the graphql runtime, either from an injected module or lazily.

Parameters

optional
importer = defaultImporter

Optional custom importer function

Return Type

Promise<GraphqlRuntime>

The adapted graphql runtime

Throws

GraphqlRuntimeLoadError

If loading fails

Usage

import { loadGraphqlModule } from "graphql-plugin/src/index.ts";