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

Interfaces implements Interface #159

Closed nsdeschenes closed 2 years ago

nsdeschenes commented 2 years ago

I'm trying to create a proof of concept schema that has requires interfaces to implement another interface.

The included web editor does not all the file to be saved when I try to set it in there, if I manually set it and try to launch graphql-faker it doesn't throw any errors, but it says there's an issue with the middle-ware when visiting the /graphql endpoint.

It was mentioned in this RFC: https://github.com/graphql/graphql-spec/pull/373, I was wondering what the status of it is in graphql-faker, and if it will be integrated?

interface Node {
  id: ID!
}

interface NodeB extends Node {
  id: ID!
  idTwo: ID!
}

type a implements Node & NodeB {
  id: ID!
  idTwo: ID!
  hello: String
}
L3V147H4N commented 2 years ago

spec for interface extension was introduced very recently https://spec.graphql.org/October2021/#sec-Interface-Extensions