using graphql-spqr-spring-boot-starter and graphql-spqr but not able to create Fragment using @GraphQLDirective, not sure if there is anyway to do it.
my intension is to create Fragment through code like
@Data
@GraphQLFragment
public class ProfileFields{
private String name;
private String emailId;
private String phoneNo;
}
and use this fragment in the query below, can someone guide me what are the annotations used for this
{
profile(id: "101"){
...ProfileFields
}
}