How to make a query with optional file Upload?
Opened this issue · 0 comments
Mukhametvaleev commented
My schema:
scalar Upload
input CompanyUpdateInput {
logo: Upload # logo is optional
}
type Company {
id: ID!
}
type Mutation {
updateUserCompany(company: CompanyUpdateInput!): Company!
}
Case 1: Make a query with no File selected:
- AR: Extension unknown error in response: "file with index not found: 0"
- ER: Gateway proxy empty File or null to subgraph.
Case 2: Make a query with no File/map keys in form-data:
- AR: Extension unknown error in response: "error parsing file map unexpected end of JSON input"
- ER: Gateway proxy request to subgraph with no
logo
field.