-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Support for Hot Reload of GraphQL Schemas (#2510)
## Why make this change? - Closes #2431 - This change is necessary to enable dynamic updates to GraphQL schemas without requiring a full application restart. - It enhances the developer experience by allowing schema changes to be reflected immediately during runtime, improving efficiency in development and deployment processes. ## What is this change? - Addition of new constants in `DabConfigEvents.cs` for GraphQL schema events. - Updates to `HotReloadEventHandler.cs` to include handlers for GraphQL schema-related events. - Modifications in `RuntimeConfigLoader.cs` to ensure proper firing order of events for schema eviction and creation. - Updates to `GraphQLSchemaCreator.cs` to handle configuration changes and update runtime entities accordingly. - Modifications in `Startup.cs` to register hot reload event handlers and methods for refreshing and evicting the GraphQL schema. ## How was this tested? - [X] Integration Tests - [X] Manual Tests ## Sample Request(s) https://github.com/user-attachments/assets/0a2e6353-d466-453e-b1d3-d2f64b3f1d75
- Loading branch information
1 parent
d757585
commit 833521d
Showing
6 changed files
with
305 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.