Files
backstage/plugins/graphql-backend
renovate[bot] e13cd3feaf Update dependency msw to ^0.48.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-11-09 10:15:16 +00:00
..
2022-10-06 15:00:36 +02:00
2022-08-19 16:33:06 +02:00
2022-11-08 14:04:37 +00:00
2022-11-09 10:15:16 +00:00

GraphQL Backend

Getting Started

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:

  1. 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));
  1. Start the backend
yarn workspace example-backend start

This will launch the full example backend.