koa-graphiql
Koa middleware to display GraphiQL. Designed for Koa 2.
Usage
npm i --save koa-graphiql
Add it to your Koa app. You may want to use router middleware if your app serves more than GraphiQL.
; router;
Typically, you will want to populate the query
, variables
, and result
fields from data in the Koa context, such as the query parameters or request body.