feat(server): enable graphiql

This commit is contained in:
Joshua Seigler 2020-01-28 23:28:53 -05:00
parent 27a5900978
commit c401dfbe04
2 changed files with 3 additions and 2 deletions

View file

@ -6,7 +6,8 @@ const schema = require('./schema/schema');
const app = express();
app.use('/graphql', graphqlHTTP({
schema
schema,
graphiql: true
}));
app.listen(4000, () => {