Skip to content

Commit

Permalink
Update slimy-cooks-relate.md
Browse files Browse the repository at this point in the history
  • Loading branch information
taras authored Feb 8, 2024
1 parent fb0e84d commit 1e09425
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .changeset/slimy-cooks-relate.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ Make module default exports to allow using import syntax

This change allows to use import syntax to load modules

```ts
```diff
import { createBackend } from '@backstage/backend-defaults';
- import { graphqlPlugin } from '@frontside/backstage-plugin-graphql-backend';
- import { graphqlModuleCatalog } from '@frontside/backstage-plugin-graphql-backend-module-catalog';
-import { graphqlPlugin } from '@frontside/backstage-plugin-graphql-backend';
-import { graphqlModuleCatalog } from '@frontside/backstage-plugin-graphql-backend-module-catalog';

const backend = createBackend();


- backend.add(graphqlPlugin());
+ backend.add(import('@frontside/backstage-plugin-graphql-backend'));
- backend.add(graphqlModuleCatalog());
+ backend.add(import('@frontside/backstage-plugin-graphql-backend-module-catalog'));
-backend.add(graphqlPlugin());
+backend.add(import('@frontside/backstage-plugin-graphql-backend'));
-backend.add(graphqlModuleCatalog());
+backend.add(import('@frontside/backstage-plugin-graphql-backend-module-catalog'));

backend.start();
```

0 comments on commit 1e09425

Please sign in to comment.