pablocattaneo
12/24/2018 - 7:50 AM

How to activate debugging tool in express-graphql package?

How to activate debugging tool in express-graphql package? #graphql #express-graphql

Source: https://youtu.be/LXTyzk2uud0?list=PL55RiY5tL51rG1x02Yyj93iypUuHYXcB_&t=1235

const express = require('express');
const graphqlHTTP = require('express-graphql');

const app = express();

app.use('/graphql', graphqlHTTP({
  schema: MyGraphQLSchema,
  graphiql: true // This property active debugging tool
}));