apollo-hooks-codegen icon indicating copy to clipboard operation
apollo-hooks-codegen copied to clipboard

Support for interfaces

Open denkristoffer opened this issue 6 years ago • 0 comments

👋

I'm trying to use [email protected] with GraphQL interfaces, is this supported? At the moment I'm getting an error about unhandled GraphQLOutputType in unwrap with the following schema:

interface Document {
  id: ID!
  permalink: String!
}

type Verdict implements Document @hasScope(scope: ["read:verdict"]) {
  id: ID!
  permalink: String!
}

Logging the type shows it's complaining about Document.

denkristoffer avatar Apr 29 '19 10:04 denkristoffer