-
Notifications
You must be signed in to change notification settings - Fork 575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to disable introspection #628
Comments
You can done this by : const NoIntrospection = require("graphql-disable-introspection"); server.start( export declare class GraphQLServer { export interface Options extends ApolloServerOptions { |
@performautodev Typescript complains about the introspection field. Will check with it. |
There's no such "introspection" option in Yoga, I'm still looking around for ways to disable it. It seems that this project is no longer active. What about the many production projects out there depending on it? Open source should not be like this. |
I found a library that fix this issue: https://www.npmjs.com/package/graphql-disable-introspection |
hey @iamchathu @omar-dulaimi we @the-guild-org are the new maintainers of this project. We are actively developing import { createServer } from '@graphql-yoga/node'
import { useDisableIntrospection } from '@envelop/disable-introspection'
const server = createServer({
schema,
logging: false,
plugins: [useDisableIntrospection()]
}) Would love to get your feedback on |
In Apollo server there is an option
introspection: true
to turn on and off graphql introspection. How to the same inGraphQL yoga
?The text was updated successfully, but these errors were encountered: