Skip to content

Union Type

nalchevanidze edited this page May 16, 2019 · 2 revisions

GraphQL Union Type

You can use Union Types as GrqphQL Union Type, for it you should associate it with UNION type

type instance KIND Character = UNION

data Character
  = MORTAL Mortal
    DEITY Deity
    CREATURE Creature
    deriving (Generic, GQLType)
Clone this wiki locally