Skip to content
Discussion options

You must be logged in to vote

OK. There is a few things going on here.

  1. Lombok.

The original error you are getting is due to Lombok's equals and hashcode. I removed the @EqualsAndHashCode(callSuper = false) and @Data on both Component and ComponentType and added @Getter @Setter

  1. Wrong parameter.

The parameter passes into the GraphQL @Source method needs to match the response type of the @Query. So I changed

public Uni<List<ComponentType>> batchedType(@Source List<Component> components)
to
public Uni<List<ComponentType>> batchedType(@Source Uni<List<Component>> components)

in ComponentResource

  1. Conflicting field names.

So you have:

@ManyToOne(fetch = FetchType.LAZY)
private ComponentType type;

on Component

So in Gr…

Replies: 2 comments 33 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
33 replies
@UbiquitousBear
Comment options

@phillip-kruger
Comment options

@UbiquitousBear
Comment options

@phillip-kruger
Comment options

Answer selected by UbiquitousBear
@UbiquitousBear
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment