Skip to content
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

Re-land: Fastify integration from #1971. #2280

Merged
merged 41 commits into from
Feb 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
23b5b32
feat(fastify): Integrate apollo-fastify plugin #626
addityasingh Oct 2, 2018
c9bf990
Merge branch 'master' into as-integrate-fastify-plugin
addityasingh Oct 3, 2018
f004237
feat(fastify): Fix review comments and broken tests, build #626
addityasingh Oct 3, 2018
69b619b
feat(fastify): Fix test #626
addityasingh Oct 3, 2018
aebbcf2
feat(fastify): Remove local package #626
addityasingh Oct 3, 2018
dd432e7
feat(fastify): Add fastify package to workspace #626
addityasingh Oct 3, 2018
be5907a
Merge branch 'master' into as-integrate-fastify-plugin
addityasingh Oct 7, 2018
4f5509d
feat(fastify): Update package lock #626
addityasingh Oct 7, 2018
55f2975
feat(fastify): Update package lock with latest install #626
addityasingh Oct 7, 2018
d78d51a
feat: Update package lock #636
addityasingh Oct 11, 2018
a7b5dc7
Merge branch 'master' into as-integrate-fastify-plugin
addityasingh Oct 11, 2018
82afdf2
Merge branch 'master' into as-integrate-fastify-plugin
addityasingh Oct 15, 2018
3d99e3b
Merge branch 'master' into as-integrate-fastify-plugin
addityasingh Nov 13, 2018
c4a8b58
feat: Update tsconfig #636
addityasingh Nov 13, 2018
2a74353
feat: Remove overriding tsc compile command #636
addityasingh Nov 14, 2018
efb835b
Merge branch 'master' into as-integrate-fastify-plugin
addityasingh Nov 14, 2018
9d22b2f
feat: Add jest config #636
addityasingh Nov 14, 2018
8901556
feat: Fix linting issue#636
addityasingh Nov 14, 2018
2977562
feat: Add tsconfig for fastify tests #636
addityasingh Nov 14, 2018
615a994
Merge branch 'master' into as-integrate-fastify-plugin
addityasingh Nov 14, 2018
3fea803
Merge branch 'master' into release-vNEXT
abernix Dec 13, 2018
ccd974d
Merge branch 'master' into release-vNEXT
abernix Dec 18, 2018
bacdeae
feat(fastify) Apollo Fastify server integration resolve #626
rkorrelboom Nov 15, 2018
a1d2b74
feat(fastify) Use createHandler instead of applyMiddleware #626
rkorrelboom Nov 17, 2018
88ff161
feat(fastify) Fix integration test for node 10 #626
rkorrelboom Nov 17, 2018
fb023a5
feat(fastify) Update README's with fastify createHandler interface #626
rkorrelboom Nov 17, 2018
482cdad
feat(fastify) Implement the fastify createHandler as a synchronous me…
rkorrelboom Nov 19, 2018
fa621c6
(fastify) Tweaks to re-align with the parallel work in #2054.
abernix Dec 4, 2018
99bf841
(fastify): Use port 9999 rather than 8888 for tests. Because Gatsby.
abernix Dec 4, 2018
5987384
(fastify) Remove duplicative assertion in upload initialization.
abernix Dec 4, 2018
05158d3
(fastify) Implement fastify upload middleware
rkorrelboom Jan 2, 2019
94e9a07
(fastify) Fix linting issues
rkorrelboom Jan 2, 2019
6ebb60a
(fastify) Update package-lock
rkorrelboom Jan 2, 2019
a14eddf
Merge branch 'release-2.4.0' into HEAD
abernix Jan 23, 2019
a849cf9
Merge branch 'pull-1760' into re-stage-pr-1971
abernix Feb 8, 2019
b4df18b
Merge branch 'master' into re-stage-pr-1971
abernix Feb 8, 2019
8ac2884
Merge branch 'master' into re-stage-pr-1971
abernix Feb 14, 2019
be90c68
Update `package-lock.json` for `apollo-server-fastify`.
abernix Feb 14, 2019
8f204f4
Align `apollo-server-fastify`'s version in preparation for publishing.
abernix Feb 14, 2019
fce72b2
Update `CHANGELOG.md` for `apollo-server-fastify` release.
abernix Feb 14, 2019
f988a30
Publish
abernix Feb 14, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### vNEXT

- `apollo-server-fastify` is now on Apollo Server and lives within the `apollo-server` repository. This is being introduced in a _patch_ version, however it's a _major_ version bump from the last time `apollo-server-fastify` was published under `1.0.2`. [PR #1971](https://github.com/apollostack/apollo-server/pull/1971)
- Move `apollo-graphql` package to the `apollo-tooling` repository [PR #2316](https://github.com/apollographql/apollo-server/pull/2316)

### v2.4.1
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Often times, Apollo Server needs to be run with a particular integration. To sta
- `apollo-server-express`
- `apollo-server-koa`
- `apollo-server-hapi`
- `apollo-server-fastify`
- `apollo-server-lambda`
- `apollo-server-azure-functions`
- `apollo-server-cloud-functions`
Expand Down Expand Up @@ -235,6 +236,25 @@ new ApolloServer({
})
```

## Fastify

```js
const { ApolloServer, gql } = require('apollo-server-fastify');
const { typeDefs, resolvers } = require('./module');

const server = new ApolloServer({
typeDefs,
resolvers,
});

const app = require('fastify')();

(async function () {
app.register(server.createHandler());
await app.listen(3000);
})();
```

### AWS Lambda

Apollo Server can be run on Lambda and deployed with AWS Serverless Application Model (SAM). It requires an API Gateway with Lambda Proxy Integration.
Expand Down