We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef042cf commit 31a3c51Copy full SHA for 31a3c51
1 file changed
src/utilities/buildClientSchema.ts
@@ -284,14 +284,15 @@ export function buildClientSchema(
284
return new GraphQLEnumType({
285
name: enumIntrospection.name,
286
description: enumIntrospection.description,
287
- values: keyValMap(
288
- enumIntrospection.enumValues,
289
- (valueIntrospection) => valueIntrospection.name,
290
- (valueIntrospection) => ({
291
- description: valueIntrospection.description,
292
- deprecationReason: valueIntrospection.deprecationReason,
293
- }),
294
- ),
+ values: () =>
+ keyValMap(
+ enumIntrospection.enumValues,
+ (valueIntrospection) => valueIntrospection.name,
+ (valueIntrospection) => ({
+ description: valueIntrospection.description,
+ deprecationReason: valueIntrospection.deprecationReason,
+ }),
295
+ ),
296
});
297
}
298
0 commit comments