Files
backstage/plugins/graphql-backend
blam 6c8474c4a7 chore: bumping the versions
Signed-off-by: blam <ben@blam.sh>

Signed-off-by: blam <ben@blam.sh>
2022-05-31 12:33:35 +02:00
..
2022-03-07 10:15:54 +00:00
2022-05-24 11:05:52 +00:00
2022-05-31 12:33:35 +02: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.