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 does not forward file uploads when they are contained in a list #7093

Closed
Enterprize1 opened this issue May 7, 2024 · 0 comments · Fixed by #7094
Closed

Fusion does not forward file uploads when they are contained in a list #7093

Enterprize1 opened this issue May 7, 2024 · 0 comments · Fixed by #7094
Labels
🐛 bug Something isn't working 🌶️ hot chocolate Next Next up on the backlog.
Milestone

Comments

@Enterprize1
Copy link
Contributor

Product

Hot Chocolate

Version

14.0.0-p.98

Link to minimal reproduction

  • (Testcase in pull request)

Steps to reproduce

In a Fusion Context: Define a list-based input for a mutation in a subgraph where the elements of the list contain an IFile.

(Or copy the new testcase to master)

What is expected?

All file uploads are forwarded to the subgraph.

What is actually happening?

File uploads are missing in the request to the subgraph, so there are complaints about missing input values for the IFiles.

Relevant log output

{
  "errors": [
    {
      "message": "Cannot return null for non-nullable field.",
      "locations": [
        {
          "line": 2,
          "column": 5
        }
      ],
      "path": [
        "uploadMultipleProductPictures"
      ],
      "extensions": {
        "code": "HC0018"
      }
    },
    {
      "message": "Cannot accept null for non-nullable input.",
      "path": [
        "input",
        "products",
        0,
        "file"
      ],
      "extensions": {
        "code": "HC0018",
        "field": "ProductIdWithUploadInput.file"
      }
    }
  ],
  "data": null
}

Additional context

No response

@Enterprize1 Enterprize1 added the 🐛 bug Something isn't working label May 7, 2024
@michaelstaib michaelstaib added this to the HC-14.0.0 milestone May 8, 2024
@michaelstaib michaelstaib added the Next Next up on the backlog. label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 🌶️ hot chocolate Next Next up on the backlog.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants