-
Notifications
You must be signed in to change notification settings - Fork 10
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
Applying @shareable after @key fails, but not vice versa #17
Comments
Hey, sorry for the late reply on this. I cannot reproduce your error with the following MWE: from graphene_federation import shareable
from graphene_federation.entity import key
from graphene_federation.main import build_schema
def test_multiple_keys_share():
@shareable
@key(fields="identifier")
class User(ObjectType):
identifier = ID()
email = String()
class Query(ObjectType):
user = Field(User)
schema = build_schema(query=Query, enable_federation_2=True)
print(str(schema)) If I instead use pass for the object type or don't extend the objecttype class, I get an exception regardless of the order of |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This fails:
But this works:
The text was updated successfully, but these errors were encountered: