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

Support for referencing @interfaceObject without contributing a field #2884

Open
aliosmanisikk opened this issue Dec 8, 2023 · 0 comments
Open

Comments

@aliosmanisikk
Copy link

It would be nice to have non-resolvable @interfaceObject to reference an interface without contributing a field. Similar to the regular Entities https://www.apollographql.com/docs/federation/entities/#referencing-an-entity-without-contributing-fields

// Subgraph A
interface Media @key(fields: "id") {
  id: ID!
  title: String!
}

type Book implements Media @key(fields: "id"){
  id: ID!
  title: String!
}

// Subgraph B
type Media @key(fields: "id", resolvable: false) @interfaceObject {
  id: ID!
}

type Query {
  numberOneMedia: Media!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant