javascript - How to upload images to graphql backend with axios? - Stack Overflow

PHOTO EMBED

Fri May 15 2020 19:37:36 GMT+0000 (Coordinated Universal Time)

Saved by @shyamady #javascript

  scalar DateTime
  scalar Upload

  input addUser {
    Email: String!
    Password: String
    FirstName: String!
    LastName: String!
    Age: DateTime!
    JobTitle: String!
    File: Upload
  }

  type Mutation {
    register(input: addUser!): Boolean
  }
content_copyCOPY

graphql

https://stackoverflow.com/questions/61827041/how-to-upload-images-to-graphql-backend-with-axios