-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider typing for gateway
parameter in AS3
#4919
Comments
In #5295 I made its methods required. But let's rename the type too. |
glasser
added a commit
that referenced
this issue
Jun 10, 2021
`GraphQLService` was a confusing name. It's not related to `GraphQLServiceContext` (which is the type of the argument to `serverWillStart`) nor is it related to "service", the old name for a graph in Studio... or "implementing service", the old name for a subgraph... It's the type of the `gateway` option, so giving it a gateway name seems reasonable. But we keep exporting the old name so that we can have builds of `@apollo/gateway` that work with both AS2 and AS3. Fixes #4919.
glasser
added a commit
that referenced
this issue
Jun 10, 2021
`GraphQLService` was a confusing name. It's not related to `GraphQLServiceContext` (which is the type of the argument to `serverWillStart`) nor is it related to "service", the old name for a graph in Studio... or "implementing service", the old name for a subgraph... It's the type of the `gateway` option, so giving it a gateway name seems reasonable. But we keep exporting the old name so that we can have builds of `@apollo/gateway` that work with both AS2 and AS3. Fixes #4919.
Fixed in AS3. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Right now
gateway
has a somewhat genericGraphQLService
interface but it's unclear that we would support anything other than ApolloGateway. Maybe we should change the type toApolloGateway
(or something named reflecting it if we need to bust cyclic dependencies)? Maybe we should at least make all its methods (likestop
) required? Maybe we should add functionality to the plugin interface so that gateway could just be a plugin?The text was updated successfully, but these errors were encountered: