Skip to content

MappedBatchLoaders in 6.x? (replacing DataLoaderFactory.newMappedDataLoader from 5.x) #1454

Answered by samuelAndalon
terminalnode asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, there are a couple of reasons why we changed the KotlinDataLoader to allow passing the BatchLoader fn instead of the DataLoader instance:

  1. We are working in a better Instrumentation to dispatch DataLoaderRegistry in a more efficient way, so for that we had to decorate the DataLoader CacheMap before instantiating the DataLoader.
  2. the issue that @terminalnode highlighted.

about point 1 a PR in graphql-java-dataloader was merged to natively support what we where doing to the CacheMap

so we can theorically go back to previous KotlinDataLoader implementation.

ill work on that.

BTW @terminalnode if you are relying on DataLoaders i would like to encourage you to take a look at
https://ope…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@terminalnode
Comment options

Comment options

You must be logged in to vote
2 replies
@terminalnode
Comment options

@dariuszkuc
Comment options

Answer selected by terminalnode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants