Files
backstage/plugins/graphql
blam fff010b0d1 Merge branch 'master' of github.com:spotify/backstage into mob/union-types
* 'master' of github.com:spotify/backstage:
  Update quickstart-app-auth.md
  Update changelog
  v0.1.1-alpha.22
  v0.1.1-alpha.21
  TechDocs: Use a flag to determine if we should use a local mkdocs or techdocs-container (#2503)
  feat(catalog-backend): delete log entries older than a cutoff
  fix(workflows): do not run e2e when contrib or docs change
  chore(contrib): form the basic contrib hierarchy
  fix(catalog-backend): address comments and add docs
  fix(catalog-backend): unify github and github/api, and use git-url-parse
2020-09-20 21:00:45 +02:00
..
2020-08-14 14:50:01 +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.