diff --git a/.changeset/kind-hotels-repair.md b/.changeset/kind-hotels-repair.md new file mode 100644 index 0000000000..ec72b15c79 --- /dev/null +++ b/.changeset/kind-hotels-repair.md @@ -0,0 +1,5 @@ +--- +'@frontside/backstage-plugin-graphql': patch +--- + +Update readme to use `printSchemaWithDirectives` instead of `printSchema` diff --git a/plugins/graphql/README.md b/plugins/graphql/README.md index 04d7028da7..61efb304ea 100644 --- a/plugins/graphql/README.md +++ b/plugins/graphql/README.md @@ -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')