fix(gateway): make loadServiceDefinitions
a private
method, replace with reasonable API
#555
Labels
loadServiceDefinitions
a private
method, replace with reasonable API
#555
Right now, there's a use case for subclassing
ApolloGateway
in order to override theloadServiceDefinitions
method. This is very effectively similar to providing a function to theexperimental_updateServiceDefinitions
"hook", however said hook doesn't have access to the originalloadServiceDefinitions
fn on the gateway which can be useful.A few reasonable alternatives to this (proposed by @glasser):
loadServiceDefinitions
into theexperimental_updateServiceDefinitions
hookwillUpdateServiceDefinitions
hook which can modify the result of the gateway's standard service defs updateref: #539
The text was updated successfully, but these errors were encountered: