How to disable introspection
See original GitHub issueIn Apollo server there is an option introspection: true
to turn on and off graphql introspection. How to the same in GraphQL yoga
?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:5
Top Results From Across the Web
Why and how to disable introspection query for GraphQL APIs
Why and how to disable introspection query for GraphQL APIs ... GraphQL schema by disabling introspection query which is enabled by default.
Read more >graphql-disable-introspection - npm
Disable introspection queries in GraphQL with a simple validation rule. ... npm install -save graphql-disable-introspection.
Read more >Disabling introspection - gqlgen
Disable introspection for the whole server. To opt out of introspection globally you should build your own server with only the features you...
Read more >Disable GraphQL Introspection in graphql-java-tools
If you are using graphql-spring-boot, according to the graphql-java-tools README, you can disable the introspection query by setting the graphql ...
Read more >Cloud Standard & EE: Disable GraphQL introspection - Hasura
The GraphQL engine by default enables GraphQL Schema Introspection which gives full information about the schema and may not be desired in production....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can done this by :
const NoIntrospection = require(“graphql-disable-introspection”);
server.start( { validationRules: [NoIntrospection], } );
export declare class GraphQLServer { … options: Options; … }
export interface Options extends ApolloServerOptions { port?: number | string; cors?: CorsOptions | false; … }
hey @iamchathu @omar-dulaimi we @the-guild-org are the new maintainers of this project. We are actively developing
v2
. It is build on top ofenvelop
and in the new version you can just pass in the disable introspection plugin.Would love to get your feedback on
beta
release!