Skip to content

More documentation for DisableIntrospection? #1552

Open
@dwjp

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

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @dwjp@erikwrede

      Issue actions

        More documentation for DisableIntrospection? · Issue #1552 · graphql-python/graphene