Skip to content

Conversation

@sleepycat
Copy link
Contributor

@sleepycat sleepycat commented Jan 25, 2018

DirectiveLocation moved in the latest version of Graphql.js.
This commit updates the location and fixes a test for normal execution.

Without this, upgrading to Graphqljs 0.12.0 would result in TypeError: Cannot read property 'FIELD' of undefined as DirectiveLocation would be undefined which is the error seen in issue #15.

DirectiveLocation moved in the latest version of Graphql.js.
This commit updates the location and fixes a test for normal execution.
@coveralls
Copy link

coveralls commented Jan 26, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 3fe77d9 on sleepycat:support_twelve_dot_oh into 2859100 on lirown:master.

@akand074
Copy link

DirectiveLocation seems to be in index, maybe import directly from graphql is safest?
https://github.com/graphql/graphql-js/blob/master/src/index.js#L187

@lirown mind taking a look at this, would be great to fix this for latest versiond of graphql.

@lirown lirown merged commit 05934ef into lirown:master Apr 9, 2018
@sleepycat sleepycat deleted the support_twelve_dot_oh branch April 9, 2018 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants