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

How to make a query with optional file Upload? #188

Open
Mukhametvaleev opened this issue Mar 23, 2023 · 0 comments
Open

How to make a query with optional file Upload? #188

Mukhametvaleev opened this issue Mar 23, 2023 · 0 comments

Comments

@Mukhametvaleev
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant