Adds a predicate to DataLoaderRegistry and a per dataloader map of pedicates is also possible by bbakerman · Pull Request #133 · graphql-java/java-dataloader
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that a DispatchPredicate can be registered per DataLoader, this should ideally be called defaultDispatchPredicate. However, I understand that would involve renaming, and/or a deprecation and a property with the new name. In the very least, the Javadoc should be updated to indicate that it applies by default, if there isn't already a registration for that DataLoader.
Also, really minor but the field and getter for dispatchPredicate could be ordered after the map of predicates, like it is in the builder to reflect it comes after the other registrations.