-
-
Save jbach/0ee869e63f187dc7ff54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import express from 'express'; | |
import { json } from 'body-parser'; | |
import graffiti from '../'; | |
import schema from './schema'; | |
const app = express(); | |
app.use(json()); | |
app.use(graffiti.express({ | |
schema | |
})); | |
app.listen(3001, (err) => { | |
if (err) { | |
throw err; | |
} | |
console.log('Express server is listening on port 3001'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment