GraphiQL API Documentation
    Preparing search index...

    Function typeCategory

    • Buckets a GraphQL type into one of four color categories, unwrapping list and non-null wrappers first. composite covers object, interface, and union types — they share a color because they share an interaction (you select fields on all three). The bucketing is a styling convention, not a GraphQL invariant.

      Parameters

      • type: GraphQLType

      Returns GraphQLTypeCategory