-
-
Notifications
You must be signed in to change notification settings - Fork 786
Open
Labels
Area: FusionIssue is related to Hot Chocolate FusionIssue is related to Hot Chocolate Fusion🌶️ hot chocolate
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
Product
Hot Chocolate
Describe the bug
When I configure my fusion gateway server from a file, changes to the file don't take effect until the server is restarted.
services
.AddFusionGatewayServer()
.ConfigureFromFile("gateway.fgp", watchFileForUpdates: true)
The issue occurred in version 13.5.1. After downgrading to 13.2.1, when the configuration looked slightly differently, hot reload worked without needing to restart.
Steps to reproduce
- Set up a HotChocolate Fusion gateway server with
services.AddFusionGatewayServer().ConfigureFromFile("gateway.fgp", watchFileForUpdates: true)
. - Create a valid gateway.fgp file.
- Start the GraphQL Fusion server.
- Confirm in BananaCakePop that the schema was loaded correctly from the gateway.fgp file.
- Replace the gateway.fgp file with a different valid configuration.
- Reload the schema in BananaCakePop and notice that the schema hasn't changed.
- Restart the GraphQL Fusion server.
- Confirm that BananaCakePop now shows the new schema.
Relevant log output
No response
Additional Context?
.ConfigureFromCloud() seems to work. So I assume the error might be related to the file watcher.
Version
13.5.1
mjaric
Metadata
Metadata
Assignees
Labels
Area: FusionIssue is related to Hot Chocolate FusionIssue is related to Hot Chocolate Fusion🌶️ hot chocolate