Skip to content

Instantly share code, notes, and snippets.

@YonatanKra

YonatanKra/server.js

Created Oct 23, 2020
Embed
What would you like to do?
covid19 graphql server
const express = require('express');
const graphqlHTTP = require('express-graphql');
const schema = require('./schema');
const app = express();
app.use(express.static('public'));
app.use(
'/graphql',
graphqlHTTP({
schema,
graphiql: true,
}),
);
app.listen(8081);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.