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

[Federation] Allow multiple entity keys. #1031

Closed
BitPhinix opened this issue Feb 15, 2020 · 2 comments
Closed

[Federation] Allow multiple entity keys. #1031

BitPhinix opened this issue Feb 15, 2020 · 2 comments
Labels

Comments

@BitPhinix
Copy link

What happened?

GQLGen only generates one entity resolver function for an entity with 2 (or more) keys.

What did you expect?

2 (or more) Entity resolver functions.

Minimal graphql.schema and models to reproduce

type Product @key(fields: "upc") @key(fields: "sku") {
  upc: UPC!
  sku: SKU!
  name: String
}

See Apollo Documentation

versions

  • gqlgen version?
  • go version?
  • dep or go modules?

Also, thanks for the awesome work 👍

@vektah
Copy link
Collaborator

vektah commented Feb 16, 2020

Yeah, this is a known limitation for now. We will continue to iterate, but this wont make 0.11.

@jclyons52
Copy link
Contributor

It looks like this was resolved by #1723

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants