Skip to content

Make executor throw if no document is provided#614

Merged
robzhu merged 1 commit intographql:masterfrom
jmurzy:master
Dec 5, 2016
Merged

Make executor throw if no document is provided#614
robzhu merged 1 commit intographql:masterfrom
jmurzy:master

Conversation

@jmurzy
Copy link
Copy Markdown
Contributor

@jmurzy jmurzy commented Dec 4, 2016

Currently, buildExecutionContext throws a null reference error

Cannot read property 'definitions' of null

when document is undefined. Instead, we should throw a friendlier error message.

Also fixes apollographql/apollo-server#112

🍺

Currently, `buildExecutionContext` throws a null reference error

`Cannot read property 'definitions' of null`

when `document` is undefined. Instead, we should throw a friendlier error message for null documents.
@robzhu
Copy link
Copy Markdown
Contributor

robzhu commented Dec 5, 2016

Sweet fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Send meaningful error message if a request is sent without a query

3 participants