Migrating to v0.3
Note: This guide assumes you were previously up to date with
0.2.x. If you are currently using
0.1, consult the previous migration guide.
Version 0.3.0 of Apollo Server contains a couple of breaking changes in the Hapi plugin API.
The most notable changes are:
- the plugin class has been replaced as a function to be more idiomatic
- the plugin name has been renamed to use camelcase
- the options object has been extended to support additional routing options
The following code snippet for Hapi Apollo 0.2.x
… should be written as follows for Hapi Apollo 0.3.x
NOTE: That you can now pass additional routing configuration via the route options