Skip to content

Commit 74b5ec5

Browse files
committed
added comment
1 parent ae6e5e9 commit 74b5ec5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ const schemaVisitor = (schema: GraphQLSchema, config: ValidationSchemaPluginConf
3939

4040
const _transformSchemaAST = (schema: GraphQLSchema, config: ValidationSchemaPluginConfig) => {
4141
const { schema: _schema, ast } = transformSchemaAST(schema, config);
42+
// This affects the performance of code generation, so it is
43+
// enabled only when this option is selected.
4244
if (config.validationSchemaExportType === 'const') {
4345
return {
4446
schema: _schema,

0 commit comments

Comments
 (0)