This repository has been archived by the owner on May 17, 2019. It is now read-only.
Releases: fusionjs/fusion-plugin-apollo
Releases · fusionjs/fusion-plugin-apollo
v2.0.0-9
v2.0.0-8
v2.0.0-7
v2.0.0-6
v2.0.0-5
v2.0.0-4
Changelog
No pull requests in this release
v2.0.0-3
v2.0.0-2
v2.0.0-1
v2.0.0-0
Changelog
Highlighted Changes
- Refactor into a render plugin rather than an app wrapper (#159)
Migration Guide
v2.0.0
The 2.0.0 release also marks a refactor from fusion-apollo
as an app wrapper into fusion-plugin-apollo
which is implemented as a plugin to be
registered on the RenderToken
. We also consolidated the code from fusion-apollo-universal-server
into this module. The migration looks like this:
+import {RenderToken} from 'fusion-core';
+import App from 'fusion-react';
-import App from 'fusion-apollo';
+import ApolloPlugin from 'fusion-plugin-apollo';
-import ApolloServer from 'fusion-plugin-apollo-server';
export default async function main() {
const app = new App();
+ app.register(RenderToken, ApolloPlugin);
- app.register(ApolloServer); // apollo-server 2.0 now integrated by default
- app.middleware(require('koa-bodyparser')()); // Body parsing for /graphql route is included by default now with apollo-server 2
}