nautilus/gateway

How to make a query with optional file Upload?

Opened this issue · 0 comments

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.

Screenshot 2023-03-23 at 10 50 04 PM

Screenshot 2023-03-23 at 10 52 23 PM

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.

image

image