joyent-portal/cloudapi-graphql/src/endpoint.js
2016-10-20 10:58:19 +01:00

8 lines
178 B
JavaScript

const graphqlHTTP = require('express-graphql');
const schema = require('./schema');
module.exports = graphqlHTTP(() => ({
schema: schema,
graphiql: true,
pretty: true
}));