Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fusion compose losing input default values #7160

Open
sergiu-enache opened this issue Jun 11, 2024 · 0 comments
Open

Fusion compose losing input default values #7160

sergiu-enache opened this issue Jun 11, 2024 · 0 comments
Labels
Area: Fusion Issue is related to Hot Chocolate Fusion 🐛 bug Something isn't working 🌶️ hot chocolate Next Next up on the backlog.
Milestone

Comments

@sergiu-enache
Copy link

Product

Hot Chocolate

Version

13.9.0

Link to minimal reproduction

https://github.com/user-attachments/files/15785898/gateway.zip

Steps to reproduce

Schema subgraph before compose
input cms_VideoCreateModelInput { guid: UUID! title: String! fileUploadState: cms_FileUploadState! = UPLOADING isLoopVideo: Boolean! = false }

Schema gateway after compose
input cms_VideoCreateModelInput { fileUploadState: cms_FileUploadState! guid: UUID! isLoopVideo: Boolean! title: String! }

What is expected?

To have same default values in gateway as in original subgraph schema
fileUploadState: cms_FileUploadState! = UPLOADING
isLoopVideo: Boolean! = false

What is actually happening?

It seems there is some kind of issue in fusion that when composing subgraph it loses the default input vales
gateway.zip

Relevant log output

No response

Additional context

Same result with nullable fields.

@sergiu-enache sergiu-enache added the 🐛 bug Something isn't working label Jun 11, 2024
@glen-84 glen-84 added the Area: Fusion Issue is related to Hot Chocolate Fusion label Jun 11, 2024
@michaelstaib michaelstaib added the Next Next up on the backlog. label Jun 11, 2024
@michaelstaib michaelstaib added this to the HC-14.0.0 milestone Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Fusion Issue is related to Hot Chocolate Fusion 🐛 bug Something isn't working 🌶️ hot chocolate Next Next up on the backlog.
Projects
None yet
Development

No branches or pull requests

3 participants