From ce26497083a7e4dc51d4fa34b90c7906bec03e6e Mon Sep 17 00:00:00 2001 From: Jori Regter Date: Wed, 3 Jul 2019 08:17:53 +0200 Subject: [PATCH] Set comment descriptions to false by default (#2085) 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[]) => {