UnallowedReturnTypeForUnion

The return type is not in the list of Union types.

Constructor:

Signature:

def __init__(
self,
field_name: str,
result_type: str,
allowed_types: Set[GraphQLObjectType],
) -> None:
...

Parameters:

  1. field_name:

    Type
    str
  2. result_type:

    Type
    str
  3. allowed_types:

    Type
    Set[GraphQLObjectType]