pretty_print_graphql_operation

Pretty print a GraphQL operation using pygments.

Won’t print introspection operation to prevent noise in the output.

Signature:

def pretty_print_graphql_operation(
operation_name: str | None,
query: str,
variables: Dict[str, Any] | None,
) -> None:
...

Parameters:

  1. operation_name:

    Type
    str | None
  2. query:

    Type
    str
  3. variables:

    Type
    Dict[str, Any] | None