Skip to content

Commit

Permalink
Set comment descriptions to false by default (#2085)
Browse files Browse the repository at this point in the history
By setting the comment descriptions to false, comments in the `.graphql` files will also be included in introspection after code generation.
  • Loading branch information
joriregter authored and dotansimha committed Jul 3, 2019
1 parent 9212d8a commit ce26497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugins/other/schema-ast/src/index.ts
Expand Up @@ -3,7 +3,7 @@ import { PluginFunction, PluginValidateFn, Types } from '@graphql-codegen/plugin
import { extname } from 'path';

export const plugin: PluginFunction = async (schema: GraphQLSchema): Promise<string> => {
return printSchema(schema, { commentDescriptions: true });
return printSchema(schema, { commentDescriptions: false });
};

export const validate: PluginValidateFn<any> = async (schema: GraphQLSchema, documents: Types.DocumentFile[], config: any, outputFile: string, allPlugins: Types.ConfiguredPlugin[]) => {
Expand Down

0 comments on commit ce26497

Please sign in to comment.