Skip to content
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

More documentation for DisableIntrospection? #1552

Open
dwjp opened this issue May 21, 2024 · 0 comments
Open

More documentation for DisableIntrospection? #1552

dwjp opened this issue May 21, 2024 · 0 comments

Comments

@dwjp
Copy link

dwjp commented May 21, 2024

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 #1388 (comment))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants