1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-11 05:40:11 +02:00
copilot/cloudapi-graphql/src/endpoint.js
2016-10-25 12:05:29 +01:00

9 lines
179 B
JavaScript

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