1export const server = new ApolloServer({
2 schema: applyMiddleware(makeExecutableSchema({ typeDefs, resolvers })),
3 uploads: false,
4 introspection: true,
5 playground: true,
6 formatError: ({ message, positions, originalError }) => ({ message, positions, originalError }),
7 formatResponse: ({ data, errors, http }) => ({ data, errors, http })
8})