Skip to content

Commit

Permalink
Update readme to use printSchemaWithDirectives instead of `printSch…
Browse files Browse the repository at this point in the history
…ema`
  • Loading branch information
wKich committed Nov 23, 2022
1 parent 299bf23 commit f35c094
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/kind-hotels-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@frontside/backstage-plugin-graphql': patch
---

Update readme to use `printSchemaWithDirectives` instead of `printSchema`
4 changes: 2 additions & 2 deletions plugins/graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ You can extend the schema from inside of Backstage Backend by creating a [GraphQ
import { resolvePackagePath } from '@backstage/backend-common';
import { transformSchema } from '@frontside/backstage-plugin-graphql';
import { loadFilesSync } from '@graphql-tools/load-files';
import { printSchema } from 'graphql';
import { printSchemaWithDirectives } from '@graphql-tools/utils';
export default printSchema(
export default printSchemaWithDirectives(
transformSchema(
loadFilesSync(
resolvePackagePath('backend', 'src/graphql/*.graphql')
Expand Down

0 comments on commit f35c094

Please sign in to comment.