get_operation_type

Signature:

def get_operation_type(graphql_document: DocumentNode, operation_name: str | None = None) -> OperationType:
...

Parameters:

  1. graphql_document:

    Type
    DocumentNode
  2. operation_name:

    Type
    str | None
    Default
    None