mirror of
https://github.com/yldio/copilot.git
synced 2024-11-13 06:40:06 +02:00
8295bd6882
this shall be a progressive process
13 lines
280 B
JavaScript
13 lines
280 B
JavaScript
const { GraphQLSchema } = require('graphql');
|
|
const graphqlHTTP = require('express-graphql');
|
|
const { query, mutation } = require('./schema');
|
|
|
|
module.exports = graphqlHTTP(() => ({
|
|
schema: new GraphQLSchema({
|
|
query,
|
|
mutation
|
|
}),
|
|
graphiql: true,
|
|
pretty: true
|
|
}));
|