This is the GraphQL Backend plugin.
It is responsible for merging different graphql-plugins together to provide the end schema.
To run it within the backend do:
- Register the router in
packages/backend/src/index.ts:
const graphqlEnv = useHotMemoize(module, () => createEnv('graphql'));
const service = createServiceBuilder(module)
.loadConfig(configReader)
/** several different routers */
.addRouter('/graphql', await graphql(graphqlEnv));- Start the backend
yarn workspace example-backend startThis will launch the full example backend.