Files
backstage/plugins/graphql-backend
dependabot[bot] 68913af4ff chore(deps): bump graphql-modules from 1.4.4 to 2.0.0
Bumps [graphql-modules](https://github.com/Urigo/graphql-modules) from 1.4.4 to 2.0.0.
- [Release notes](https://github.com/Urigo/graphql-modules/releases)
- [Commits](https://github.com/Urigo/graphql-modules/compare/graphql-modules@1.4.4...graphql-modules@2.0.0)

---
updated-dependencies:
- dependency-name: graphql-modules
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-21 04:27:51 +00:00
..
2022-02-18 11:30:15 +01: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.