-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Steps to reproduce:
- Run server.ts example
- Open localhost:3000/graphql on browser.
Analysis
Looking at mod.ts line 57 it shows that graphiql options is enabled by default.
this.server.post(
"/graphql",
async (ctx: any, next: any) => {
const resp = await GraphQLHTTP<Request>({ schema, rootValue, context: (request) => ({ request }), graphiql: true })(ctx.req);
ctx.res = resp;
await next();
},
);However the post function prevent user from accessing the GraphiQL explorer on browser.
Possible Solution
- Use graphiql: true as an option argument, use get function if it's true.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
