Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for interface implementing interfaces #198

Open
Xample opened this issue Sep 4, 2023 · 0 comments
Open

support for interface implementing interfaces #198

Xample opened this issue Sep 4, 2023 · 0 comments

Comments

@Xample
Copy link

Xample commented Sep 4, 2023

According to this spec: graphql/graphql-spec#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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant