Uh oh!
There was an error while loading. Please reload this page.
Replies: 1 comment
You could reorder the results to match the order of your keys (roles) or use MappedBatchLoader to return a Map with: roleService.findByIdIn(roles).stream().collect(Collectors.toMap(Role::getId, item -> item)); |
0 replies
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am using boot-graphql-kick-start in my project(I used Netflix DGS. Result is the same). When I used Dataloader, the result is missmatching. where am I wrong? Can you help me?
Query:

Result:

Entity: I have ManyToOne Relation With My RoleEntity

DataLoader Method: I'm Using BatchLoader for n+1.

Hibernate Query: In dataLoader Iam wathcing the result. Is seems correctly

All reactions