GraphQLOperation

Constructor:

Signature:

def __init__(
self,
name: str,
kind: Literal['query', 'mutation', 'subscription'],
selections: List[GraphQLSelection],
directives: List[GraphQLDirective],
variables: List[GraphQLVariable],
type: GraphQLObjectType,
variables_type: GraphQLObjectType | None,
) -> None:
...

Parameters:

  1. name:

    Type
    str
  2. kind:

    Type
    Literal['query', 'mutation', 'subscription']
  3. selections:

    Type
    List[GraphQLSelection]
  4. directives:

    Type
    List[GraphQLDirective]
  5. variables:

    Type
    List[GraphQLVariable]
  6. type:

    Type
    GraphQLObjectType
  7. variables_type:

    Type
    GraphQLObjectType | None

Attributes:

  1. name:

    Type
    str
  2. kind:

    Type
    Literal['query', 'mutation', 'subscription']
  3. selections:

    Type
    List[GraphQLSelection]
  4. directives:

    Type
    List[GraphQLDirective]
  5. variables:

    Type
    List[GraphQLVariable]
  6. type:

    Type
    GraphQLObjectType
  7. variables_type:

    Type
    GraphQLObjectType | None