From 1835a169baac31e510cafb085e93cdf5e50c1b39 Mon Sep 17 00:00:00 2001 From: none23 Date: Sat, 19 Oct 2019 12:34:28 +0300 Subject: [PATCH] fix apollo server initialization in api-routes-apollo-server-and-client example --- .../api-routes-apollo-server-and-client/pages/api/graphql.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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: {