Skip to content

Commit 3e9d493

Browse files
committed
Simplify introspection
1 parent b93a516 commit 3e9d493

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/type/introspection.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,7 @@ export const __Field = new GraphQLObjectType({
311311
resolve: field => field.args || []
312312
},
313313
type: { type: new GraphQLNonNull(__Type) },
314-
isDeprecated: {
315-
type: new GraphQLNonNull(GraphQLBoolean),
316-
resolve: field => field.isDeprecated,
317-
},
314+
isDeprecated: { type: new GraphQLNonNull(GraphQLBoolean) },
318315
deprecationReason: {
319316
type: GraphQLString,
320317
}
@@ -352,10 +349,7 @@ export const __EnumValue = new GraphQLObjectType({
352349
fields: () => ({
353350
name: { type: new GraphQLNonNull(GraphQLString) },
354351
description: { type: GraphQLString },
355-
isDeprecated: {
356-
type: new GraphQLNonNull(GraphQLBoolean),
357-
resolve: enumValue => enumValue.isDeprecated,
358-
},
352+
isDeprecated: { type: new GraphQLNonNull(GraphQLBoolean) },
359353
deprecationReason: {
360354
type: GraphQLString,
361355
}

0 commit comments

Comments
 (0)