graphql-transform-schema icon indicating copy to clipboard operation
graphql-transform-schema copied to clipboard

Types implementing interfaces removed from transformed schema

Open shipiak opened this issue 7 years ago • 0 comments

Hi!

consider following schema:

type BoxImage implements ContentBox {
   id: String
   image: String
}

interface ContentBox{
  id: String
}

type Query {
  contentBoxById(id: String): ContentBox
}

Type BoxImage is valid return type for contentBoxById but it is removed from transformed schema:

transformSchema(remoteSchema, {
  Query: {
    '*': false,
     contentBoxById: true
  }
}

Many thanks and keep it up! :)

shipiak avatar Nov 03 '17 11:11 shipiak