graphql-kit / graphql-faker

🎲 Mock or extend your GraphQL API with faked data. No coding required.
MIT License
2.68k stars 225 forks source link

support for interface implementing interfaces #198

Open Xample opened 10 months ago

Xample commented 10 months ago

According to this spec: https://github.com/graphql/graphql-spec/pull/373 it is possible for interface to implement other interface. However, when I try to do so, no schema seems to be generated. {"errors":[{"message":"GraphQL middleware options must contain a schema."}]} Is this not supported yet, or I'm doing it wrong ?

This fails

interface A {
  id: ID!
}

interface B implements A {
    id:ID!
    value: String
}

type Test implements A & B {
   id: ID!
   value: String
   data: String
}

While this works

interface A {
  id: ID!
}

interface B {
    id:ID!
    value: String
}

type Test implements A & B {
   id: ID!
   value: String
   data: String
}