From 18cdab71481752361a3d0f1162c198f078499fc8 Mon Sep 17 00:00:00 2001 From: Yaacov Rydzinski Date: Wed, 27 May 2020 13:27:40 -0400 Subject: [PATCH] ExtendSchema comment helpful to explain why result of MapFields transformSchema function is not saved --- packages/wrap/src/transforms/ExtendSchema.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/wrap/src/transforms/ExtendSchema.ts b/packages/wrap/src/transforms/ExtendSchema.ts index a824d0736ca..12834be0d10 100644 --- a/packages/wrap/src/transforms/ExtendSchema.ts +++ b/packages/wrap/src/transforms/ExtendSchema.ts @@ -30,6 +30,8 @@ export default class ExtendSchema implements Transform { } public transformSchema(schema: GraphQLSchema): GraphQLSchema { + // MapFields's transformSchema function does not actually modify the schema -- + // it saves the current schema state, to be used later to transform requests. this.transformer.transformSchema(schema); return addResolversToSchema({