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)); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
Beta Was this translation helpful? Give feedback.
All reactions