Skip to content

Instantly share code, notes, and snippets.

@YonatanKra
Created October 23, 2020 12:56
Show Gist options
  • Save YonatanKra/d62e88df79bbe5dda632d57dbf2163f4 to your computer and use it in GitHub Desktop.
Save YonatanKra/d62e88df79bbe5dda632d57dbf2163f4 to your computer and use it in GitHub Desktop.
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