Skip to content

Does not support interfaces implementing other interfaces #231

Closed
@moberegger

Description

@moberegger

The latest version of the spec allows you to have an interface extend another interface. This feature was also added to version 15 of graphql.

The example provided in the spec would allow you to do something like

interface Node {
  id: ID!
}

interface Resource implements Node {
  id: ID!
  url: String
}

interface Image implements Resource & Node {
  id: ID!
  url: String
  thumbnail: String
}

If you were to run the linter on a schema containing this, you will receive an error:

SyntaxError: Syntax Error: Unexpected Name "implements"

Perhaps of note is that this project upgraded to V15 not too long ago, but I suppose the linting of this new feature wasn't something that came along for free with the upgrade.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions