-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read property 'directives' of undefined at createFieldExecutionResolver #8
Comments
Hello what GraphQL version do you use? |
0.13.1 version |
I just ran test with all up to date and it works, it is weird. |
Is for use ApolloServer? package.json// ...
"apollo-server-express": "^1.3.2",
"graphql": "^0.13.1",
"graphql-date": "^1.0.3",
"graphql-directive": "^0.2.1",
"graphql-fields": "^1.0.2",
"graphql-tools": "^2.21.0",
// ... server this.app = express();
const {
graphqlExpress,
graphiqlExpress
} = require('apollo-server-express');
// ...
this.app.use(compression());
this.app.use('/graphql', bodyParser.json(), graphqlExpress({
schema: require('./schema'),
context: {
db: require('./config/knex')
},
debug: this.isDevelopment,
tracing: true,
cacheControl: true
}));
if (this.isDevelopment) {
this.app.use('/graphiql', graphiqlExpress({
endpointURL: '/graphql'
}));
} |
I am facing the same problem while using graphql 0.13.2 with apollo-server-koa 1.3.4 |
Hi there, have you figured out why yet? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, it throws me the following error when trying to add directive resolve functions to the schema.
I have checked with forEachField and astNode is always undefined, is it my configuration or is it a bug?
The text was updated successfully, but these errors were encountered: