`{extensions}`: Improve `Extension` interface methods naming.
Author: chris-ramonCreated Jun 12, 2025Updated Jun 12, 2025
Actual
Currently the extensions component defined in:
Contains methods that are named in a way that could be clearer, for example:
^ It is not clear if the hook executes before or after the Parse process started.
Expected
We want to update the Extensions interface methods to a clearer naming using precise prefix, eg:
ParseDidStart -> BeforeParseHook
Using the same re-naming strategy: Before/After<Component Name>Hook we want to update the other methods.
For backwards compatibility let's keep the existing methods as a fallback.
Notes
- This naming improvement was found while working in a University Thesis via the following PR: https://github.com/chris-ramon/thesis-graphql-go/pull/66
Source: graphql-go/graphql