Apollo Server createHandler #7219
Answered
by
stephenasuncionDEV
stephenasuncionDEV
asked this question in
Q&A
-
apollo-server-micro contains createHandler in one of the function of the ApolloServer object. How do we go about doing this in v4? since implementing apollo server with next.js on v3: import { ApolloServer } from "apollo-server-micro";
import { typeDefs } from "./schemas";
import { resolvers } from "./resolvers";
const apolloServer = new ApolloServer({ typeDefs, resolvers });
export const config = {
api: {
bodyParser: false
}
};
export default apolloServer.createHandler({ path: "/api/graphql" }); |
Beta Was this translation helpful? Give feedback.
Answered by
stephenasuncionDEV
Dec 2, 2022
Replies: 1 comment 1 reply
-
Fixed with |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
trevor-scheer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed with
@as-integrations/next