Function forwardToGraphiQl
- forwardToGraphiQl(graphQLUrl?, graphiQLUrl?): ((req, res, next) => void)
-
Parameters
-
graphQLUrl: string = '/graphql'
-
graphiQLUrl: string = '/graphiql'
Returns ((req, res, next) => void)
-
- (req, res, next): void
-
Parameters
-
req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
-
res: Response<any, Record<string, any>>
-
next: NextFunction
Returns void
Middleware that forwards requests that accept html to graphiql.