Skip to content

Not implemented interfaces are still generated but queries fail. #5821

Open
@MacondoExpress

Description

@MacondoExpress

Describe the bug
When an interface has no type that implements it, it still creates top-level queries. When invoking the generated queries, a Cypher error occurs.

Type definitions

type Movie @node {
  title: String
}

type Actor @node {
  name: String
}

interface Production {
  name: String
}

To Reproduce
Run the following:

query MyQuery {
  productions {
    name
  }
}

Expected behavior
I expected any of the following:

  • Schema generation does not generate queries and mutations for interfaces that are not implemented.
  • Translation takes into account no implemented interfaces.
  • Validation error at schema generation.

System (please complete the following information):

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingconfirmedConfirmed bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions