Annotation Type Key
-
@Description("Designates an object type as an entity and specifies its key fields (a set of fields that the subgraph can use to uniquely identify any instance of the entity). You can apply multiple @key directives to a single entity (to specify multiple valid sets of key fields).") @Retention(RUNTIME) @Repeatable(Keys.class) @Experimental("SmallRye GraphQL Federation is still subject to change.") public @interface Key
directive @key(fields: FieldSet!) repeatable on OBJECT | INTERFACE
- See Also:
- federation spec
-
-
Element Detail
-
fields
@NonNull @Description("A GraphQL selection set (provided as a string) of fields and subfields that contribute to the entity\'s primary key.\nExamples:\n\"id\"\n\"username region\"\n\"name organization { id }\"") @NonNull String fields
-
-