diff --git a/examples/api-routes-apollo-server-and-client/pages/api/graphql.js b/examples/api-routes-apollo-server-and-client/pages/api/graphql.js index ab19f34c20ebc..7f2990c59c3e9 100644 --- a/examples/api-routes-apollo-server-and-client/pages/api/graphql.js +++ b/examples/api-routes-apollo-server-and-client/pages/api/graphql.js @@ -1,8 +1,7 @@ import { ApolloServer } from 'apollo-server-micro' -import { typeDefs } from '../../apollo/type-defs' -import { resolvers } from '../../apollo/resolvers' +import { schema } from '../../apollo/schema' -const apolloServer = new ApolloServer({ typeDefs, resolvers }) +const apolloServer = new ApolloServer({ schema }) export const config = { api: {