When registering the graphql server with fastify like this:
const server = new ApolloServer({
typeDefs,
resolvers,
context,
});
fastify.register(server.createHandler());
The following warning gets printed to the console:
(node:220) Warning: The route option `beforeHandler` has been deprecated, use `preHandler` instead
No warnings get printed to the console.
Recap for those new to the issue.
There are currently at least 5 PRs attempting to fix this issue:
The oldest pull request, pre-dating this issue, @abernix states it can not be resolved until Apollo Server V3.
This is about to become even more pressing for you guys. The first alpha for Fastify v3 is available https://github.com/fastify/fastify/releases/tag/v3.0.0-alpha.1
Fastify v3 removes this deprecated feature -- https://github.com/fastify/fastify/commit/bf95bbf737d98212d4c2249841e2eb16973ab5cf
Any progress on this? I'm assuming its going to be a v3 thing inline with apollo-client's v3 ?
Fastify v3 was released last week https://github.com/fastify/fastify/releases/tag/v3.0.0
Related #4355 and #4356.
Hey guys, waiting this issue to be resolved for so long. Any updates?
Please see the update I just posted on https://github.com/apollographql/apollo-server/pull/4356#issuecomment-677515901 for the availability of the Fastify v3 support on Apollo Server.