Package org.eclipse.microprofile.graphql
Annotation Interface Id
Marks a field as a ID Scalar Type.
Note that this annotation may only be placed on
For example, a user might annotate a method's parameter as such:
Note that this annotation may only be placed on
String fields/getters/setters/parameters. A deployment
error should result if it is placed on a field/getter/setter/parameter of a different type.
For example, a user might annotate a method's parameter as such:
public class Person {
@Id
private String id;
private String name;
private String surname;
// Getters and Setters
}