-
Notifications
You must be signed in to change notification settings - Fork 222
Description
Q | A |
---|---|
Bug report? | no |
Feature request? | yes |
BC Break report? | no |
RFC? | no |
Version/Branch | 0.13 |
I’d like to export the schema to schema-fragments.json and schema.graphql files to commit them in the repo so that code review can view a diff of schema.graphql to easily understand how the changes affect the schema (schema-fragments.json is for apollo)
I couldn’t find any event to hook into for that, I tried doing this in a cache warmer, it works but needs is only called when explicitly calling console cache:clear
not when the cache is updated on a web request
I have a job in CI to check that the schema.graphql is up to date in case someone forgot to call cache:clear
but it’s annoying to have a pipeline fail because we forgot that, so I was hoping to find a way to do this automatically
do you think it would be appropriate to dispatch an event allowing that ?