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

Is it possible for an interface to implement an interface? #2545

Closed
NaveAF opened this issue May 13, 2021 · 1 comment
Closed

Is it possible for an interface to implement an interface? #2545

NaveAF opened this issue May 13, 2021 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@NaveAF
Copy link

NaveAF commented May 13, 2021

Summary

Thanks to all the contributors on this project!
As asked in the title, Is it possible for an interface to implement another interface as is allowed on gql spec?

The gql spec RFC: graphql/graphql-spec#373
Spec: http://spec.graphql.org/draft/#sec-Interfaces.Interfaces-Implementing-Interfaces

examples:

interface Node {
  id: ID!
}

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

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

interface Named implements Node & Named {
  id: ID!
  name: String
}

If not, is this in the roadmap?

Thanks!

Environment (if relevant)

graphql-dotnet v4.5
.net 5

@sungam3r
Copy link
Member

See graphql-dotnet/parser#57 and #1497 . Closing this issue as duplicate.

@sungam3r sungam3r added the duplicate This issue or pull request already exists label May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants