You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In fed1, schema extensions are added to allow detecting whether or not a schema was coming from a gateway. We should replicate that in fed2. This is needed so Apollo Server plugins can Do The Right Thing™ when schemas are updated. Specifically, this is needed for apollographql/apollo-server#6317.
Considerations
Would it be useful to expose the gateway version?
Implementation notes
We need to add extensions in ApolloGateway.load and ApolloGateway.updateWithSchemaAndNotify
The text was updated successfully, but these errors were encountered:
- Added as an external file, possibly keeping inline with the existing code style for modifying schemas in the gateway
- Added `genversion` so we could keep an updated version string in the gateway code without importing `package.json` directly (which has various problems, including importing the whole file and how to import the file in typescript from the root of the sub-package).
## TODO
- [ ] Add typing info similar to the `__resolveReference` PR
- [ ] Add tests
Fixes#1749
In fed1, schema extensions are added to allow detecting whether or not a schema was coming from a gateway. We should replicate that in fed2. This is needed so Apollo Server plugins can Do The Right Thing™ when schemas are updated. Specifically, this is needed for apollographql/apollo-server#6317.
Considerations
Implementation notes
ApolloGateway.load
andApolloGateway.updateWithSchemaAndNotify
The text was updated successfully, but these errors were encountered: