81a2306667
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!
10 lines
262 B
JavaScript
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;
|