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

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

Open
MacondoExpress opened this issue Nov 19, 2024 · 1 comment
Open
Labels
bug Something isn't working confirmed Confirmed bug

Comments

@MacondoExpress
Copy link
Contributor

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 {
  title: String
}

type Actor {
  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):

@MacondoExpress MacondoExpress added bug Something isn't working confirmed Confirmed bug labels Nov 19, 2024
@neo4j-team-graphql
Copy link
Collaborator

We've been able to confirm this bug using the steps to reproduce that you provided - many thanks @MacondoExpress! 🙏 We will now prioritise the bug and address it appropriately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed Confirmed bug
Projects
None yet
Development

No branches or pull requests

2 participants