You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Take as input a field that should be used as key for that entity.
89
89
See specification: https://www.apollographql.com/docs/federation/federation-spec/#key
90
+
91
+
If the input contains a space it means it's a [compound primary key](https://www.apollographql.com/docs/federation/entities/#defining-a-compound-primary-key)
92
+
which is not yet supported.
90
93
"""
94
+
if" "infields:
95
+
raiseNotImplementedError("Compound primary keys are not supported.")
91
96
92
97
defdecorator(Type):
98
+
# Check the provided fields actually exist on the Type.
99
+
assert (
100
+
fieldsinType._meta.fields
101
+
), f'Field "{fields}" does not exist on type "{Type._meta.name}"'
0 commit comments