Reputation: 75
I tried using new @apollo/server
with NestJS instead of apollo-server-express
. While using apollo-server-express
, the apollo-server-core
package is automatically used and no error is thrown. But when I remove apollo-server-express
and install @apollo/server
as dependency. There is the error.
Error: Cannot find module 'apollo-server-core'
Does anyone have any solution ??
Upvotes: 1
Views: 2554
Reputation: 1
A package for using Apollo Server 4 from NestJS is available here.
It works with both Express and Fastify.
Upvotes: -1
Reputation: 70412
There's no official support for Apollo Server v4 with @nestjs/graphql
yet. You'd have to write a completely custom integration for that, or wait for this PR
Upvotes: 2