graphql-python / graphql-python/graphene

More documentation for DisableIntrospection?

Open
#1,552 0 comments 1 reaction 0 assignees View on GitHub
✨ enhancement 📖 documentation
Dominant language
Python
Stars
8.2k
Forks
818
PR merge metrics
No merged PRs in 30d

Description

The docs currently give this example:

```
validation_errors = validate(
schema=schema.graphql_schema,
document_ast=parse('THE QUERY'),
rules=(
DisableIntrospection,
)
)
```

But it's not obvious how to set `document_ast`, and leave it as an exercise to the reader assuming knowledge on Query AST. How should this be setup to disable introspection across all queries?

(Appreciate you might prefer support requests elsewhere, but no hits on my SO post on this https://stackoverflow.com/questions/78100152/how-to-disable-introspection-on-graphene-python/78498422#78498422 and see it was also raised in https://github.com/graphql-python/graphene/issues/1388#issuecomment-1282388489)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.