Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
reaktivo committed Jul 30, 2018
1 parent c4ad2c0 commit cbf38c9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/apollo-server-cloud-function/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ const server = new ApolloServer({
exports.handler = server.createHandler();
```

#### 2. Configure your Cloud function
#### 2. Configure your Cloud function and deploy

#### 4. Deploy the API
Set the _Function to execute_ option to _handler_
and deploy

## Getting request info

Expand All @@ -71,7 +72,9 @@ const server = new ApolloServer({
typeDefs,
resolvers,
context: ({ req, res }) => ({
// TODO
headers: req.headers,
req,
res,
}),
});

Expand Down

0 comments on commit cbf38c9

Please sign in to comment.