impress-2020/api/graphql.js
Matt Dunn-Rankin 81a2306667 move to vercel now function api structure
I haven't really tested the API yet, because it's hard to query GraphQL directly, but I'll set up the client in a bit for it!
2020-04-22 13:03:32 -07:00

10 lines
262 B
JavaScript

const express = require("express");
const { ApolloServer } = require("apollo-server-express");
const { config } = require("../src/server");
const server = new ApolloServer(config);
const app = express();
server.applyMiddleware({ app });
module.exports = app;