From 0b5845f6c1e7ae078a1e4de81fb6bb721a5e84c7 Mon Sep 17 00:00:00 2001 From: zcason Date: Mon, 18 Sep 2023 15:53:56 -0500 Subject: [PATCH] updated read me for newly supported plugins Signed-off-by: zcason --- plugins/graphql-backend/README.md | 15 +++++++++++++++ plugins/playlist-backend/README.md | 18 ++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/plugins/graphql-backend/README.md b/plugins/graphql-backend/README.md index 970222fb1f..11453ec8bc 100644 --- a/plugins/graphql-backend/README.md +++ b/plugins/graphql-backend/README.md @@ -26,3 +26,18 @@ yarn workspace example-backend start ``` This will launch the full example backend. + +### New Backend System + +The Grahpql backend plugin has support for the [new backend system](https://backstage.io/docs/backend-system/), here's how you can set that up: +In your `packages/backend/src/index.ts` make the following changes: + +```diff ++ import { graphqlPlugin } from '@backstage/plugin-graphql-backend'; + +const backend = createBackend(); ++ backend.add(graphqlPlugin()); +// ... other feature additions + +backend.start(); +``` diff --git a/plugins/playlist-backend/README.md b/plugins/playlist-backend/README.md index c0055ebdf7..e336ec5b08 100644 --- a/plugins/playlist-backend/README.md +++ b/plugins/playlist-backend/README.md @@ -85,3 +85,21 @@ export default async function createPlugin(env: PluginEnvironment): Promise