Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return graphiqlKoa({
endpointURL: graphQLRouter,
})(ctx);
}
if (onPreGraphQL) {
await onPreGraphQL(ctx);
}
const serverOptions = Object.assign(
{},
apolloServerOptions,
{
schema: app.schema,
context: ctx,
}
);
return graphqlKoa(serverOptions)(ctx);
}
await next();
};
};