Can we set up a different dispatch predicate per data loader when using ScheduledDataLoaderRegistry? #125
-
I'm trying to use the experimental ScheduledDataLoaderRegistry. We need to set up a different dispatch predicate per data loader. Is it possible to have multiple ScheduledDataLoaderRegistry instances, each with different dispatch predicates?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
in graphql-java - no - there is only 1 dataloader registry used What do you want multiple for - certain dataloaders get different parameters?? You could write a delegating DataLoaderRegistry that some how finds them from a group of them maybe?? |
Beta Was this translation helpful? Give feedback.
-
See https://github.com/graphql-java/java-dataloader/pull/130/files |
Beta Was this translation helpful? Give feedback.
See https://github.com/graphql-java/java-dataloader/pull/130/files