prisma-archive / graphql-transform-schema

Transform, filter & alias resolvers of a GraphQL schema

Home Page:https://example-rakllksfme.now.sh/graphiql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Types implementing interfaces removed from transformed schema

shipiak opened this issue · 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! :)