haskell-graphql / graphql-api

Write type-safe GraphQL services in Haskell
BSD 3-Clause "New" or "Revised" License
406 stars 35 forks source link

Example for field with interface type #131

Open eugenk opened 6 years ago

eugenk commented 6 years ago

There is no example for a field with an interface type, like

type Human implements Sentient {
  name: String!
  favouritePet: Pet
}

How must a handler for this be implemented?