Skip to content

support for interface implementing interfaces #198

@Xample

Description

@Xample

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions