As reported in #313 and #384, an error thrown that isn't a
`HttpQueryError` will result in an "unhandled promise rejection",
leading to infinitely hanging requests.
While exploring ways to reproduce #313, I thought that validation errors
coming from GraphQL's internal type checking would reproduce the issue.
It didn't. But instead of throwing out the test I wrote, I thought it
might be good to keep it around to prevent future possible regressions.
I'll keep exploring ways to reproduce the issue I'm experiencing in a
subsequent commit(s).
* micro is only supported in node 6 or greater
* update dependencies
* working Graphiql Server
* updated changelog
* fix linting errors
* adding micro to test suite
* added micro example
- Fix missing semicolons
- Fix missing trailing commas
- Disable no-unused-expression for runQuery test
- expect uses unused expressions as an api Ex. expect('foo').to.be.equal();
- Disable no-use-before-declare since it requires type checking and project
file to be defined.
This adds basic instructions to the README for deploying the lambda function. It uses the Serverless Application Model by creating a template that is used by the AWS CLI.
Create an integration that will return a lambda handler for a
graphql or graphiql server. This integration requires an API
Gateway with Lambda Proxy Integration.
The test runner expects req and res objects for testing. We
have to mock these for the tests to execute properly.
This commit adds examples for modifying the response headers, to enable CORS, and how to read the event and context variables using an options function
This adds basic instructions to the README for deploying the lambda function. It uses the Serverless Application Model by creating a template that is used by the AWS CLI.
Create an integration that will return a lambda handler for a
graphql or graphiql server. This integration requires an API
Gateway with Lambda Proxy Integration.
The test runner expects req and res objects for testing. We
have to mock these for the tests to execute properly.