Skip to content

Commit

Permalink
Update README and Changelog
Browse files Browse the repository at this point in the history
Add example lambda handler and some documentation
  • Loading branch information
NeoReyad committed Jan 12, 2017
1 parent 53aa057 commit 961275b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
### v0.4.4
* Update GraphiQL to version 0.8.0 ([@DxCx](https://github.com/DxCx)) on [#192](https://github.com/apollostack/graphql-server/pull/192)
* Upgrade to GraphQL-js 0.8.1.
* Add AWS Lambda Integration [#101](https://github.com/apollostack/graphql-server/issues/101)

### v0.4.2

Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GraphQL Server for Express, Connect, Hapi and Koa
# GraphQL Server for Express, Connect, Hapi, Koa and AWS Lambda

[![npm version](https://badge.fury.io/js/graphql-server-core.svg)](https://badge.fury.io/js/graphql-server-core)
[![Build Status](https://travis-ci.org/apollostack/graphql-server.svg?branch=master)](https://travis-ci.org/apollostack/graphql-server)
Expand Down Expand Up @@ -31,6 +31,7 @@ where variant is one of the following:
- express
- koa
- hapi
- lambda

### Express

Expand Down Expand Up @@ -124,6 +125,16 @@ app.use(router.allowedMethods());
app.listen(PORT);
```

### AWS Lambda

Lambda function should be run with Node.js v4.3. Requires an API Gateway with Lambda Proxy Integration.

```js
var server = require("graphql-server-lambda");

exports.handler = server.graphqlLambda({ schema: myGraphQLSchema });
```

## Options

GraphQL Server can be configured with an options object with the the following fields:
Expand Down

0 comments on commit 961275b

Please sign in to comment.