Skip to content

Commit

Permalink
fix(gatsby): Reserve graphqljs internal directive names (#16483)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst authored and GatsbyJS Bot committed Aug 9, 2019
1 parent 9f3d71d commit 4032012
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/gatsby/src/schema/extensions/index.js
Expand Up @@ -3,6 +3,7 @@ const {
GraphQLDirective,
DirectiveLocation,
defaultFieldResolver,
specifiedDirectives,
} = require(`graphql`)

const { link, fileByPath } = require(`../resolvers`)
Expand Down Expand Up @@ -159,6 +160,7 @@ const internalExtensionNames = [
`directives`,
`infer`,
`plugin`,
...specifiedDirectives.map(directive => directive.name),
]
const reservedExtensionNames = [
...internalExtensionNames,
Expand Down

0 comments on commit 4032012

Please sign in to comment.