Facing issues while using graphql-modules with Apollo Server V4 #2286
-
I'm creating a GraphQL application using Apollo Server V4 and graphql-modules. This is how I'm initialising the app import { createApplication } from "graphql-modules";
import moduleA from "./moduleA";
import moduleB from "./moduleB";
export const gqlApp = createApplication({
modules: [moduleA, moduleB]
}); And I'm initialising the Apollo server in the following way: const server = new ApolloServer<ContextValue>({
schema: gqlApp.schema,
plugins: [ApolloServerPluginDrainHttpServer({ httpServer })],
includeStacktraceInErrorResponses: "production" !== process.env.NODE_ENV
}); When I run the app, I get the following error in the response The only way I can make this work right now is if I generate my schema the following way: But this seems to be marked as deprecated. I'd appreciate if someone can help me in figuring out the right way of doing this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
See here #2270 |
Beta Was this translation helpful? Give feedback.
See here #2270