Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Support for multiple keys #11

Closed
jonnii opened this issue Oct 8, 2019 · 2 comments
Closed

Support for multiple keys #11

jonnii opened this issue Oct 8, 2019 · 2 comments

Comments

@jonnii
Copy link
Contributor

jonnii commented Oct 8, 2019

Apollo Federation supports multiple primary keys. We could implement this in graphene-federation in one of two ways:

# Multiple key decorators
@key("id")
@key("username")
class Person(ObjectType):
    pass

# multiple keys in a single decorator
@key("id", "username")
class Person(ObjectType):
    pass

Can you let me know if you have a preference and I'll send a PR.

@jonnii
Copy link
Contributor Author

jonnii commented Oct 8, 2019

@erebus1 I opened #12 just in case.

@erebus1
Copy link
Collaborator

erebus1 commented Nov 2, 2019

merged

@erebus1 erebus1 closed this as completed Nov 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants