From 960b596436da29bddab6b6af3812ca44081bcd1a Mon Sep 17 00:00:00 2001 From: Jori Regter Date: Mon, 1 Jul 2019 16:09:48 +0200 Subject: [PATCH] Set comment descriptions to false by default By setting the comment descriptions to false, comments in the `.graphql` files will also be included in introspection after code generation. --- packages/plugins/other/schema-ast/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/other/schema-ast/src/index.ts b/packages/plugins/other/schema-ast/src/index.ts index f5313b0beff..e53ad6132d0 100644 --- a/packages/plugins/other/schema-ast/src/index.ts +++ b/packages/plugins/other/schema-ast/src/index.ts @@ -3,7 +3,7 @@ import { PluginFunction, PluginValidateFn, Types } from '@graphql-codegen/plugin import { extname } from 'path'; export const plugin: PluginFunction = async (schema: GraphQLSchema): Promise => { - return printSchema(schema, { commentDescriptions: true }); + return printSchema(schema, { commentDescriptions: false }); }; export const validate: PluginValidateFn = async (schema: GraphQLSchema, documents: Types.DocumentFile[], config: any, outputFile: string, allPlugins: Types.ConfiguredPlugin[]) => {