-
Notifications
You must be signed in to change notification settings - Fork 254
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
Add type definitions to schema extensions #2081
Conversation
👷 Deploy request for apollo-federation-docs pending review.Visit the deploys page to approve it
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
@clenfest mind taking a quick look at this at some point? seems fine to me but you are more knowledgeable |
@smyrick @clenfest This is just a fly-by comment and it's possible I'm misunderstanding something here, but I would've expected something similar to what federation/subgraph-js/src/schemaExtensions.ts Lines 13 to 18 in 4e3c161
|
@trevor-scheer There is that type declared already: federation/gateway-js/src/typings/graphql.ts Lines 37 to 43 in 2946bdf
And I am using it here:
|
TS Compiler error
Because the type
schema.extensions
is unknown the TS compiler is failing because it doesn't know for sure ifschema.extensions.apollo
is an object. If it is not, we can not perform a spread on it.