0

Suppose I have the following mutation in .gql file where I have two inputs and one of them contains Upload type, which is a file;

How can I send the query with an image embedded for profileImage field?

register(credentials: RegisterCredentials!, userInfo: RegisterInput!): RegisterPayload!

input RegisterCredentials {
    thirdPartyUserid: ID!
    accessToken: String!
}

input RegisterInput {
    username: String!
    age:Int!
    countryCode: String!
    languageCodes: [String!]
    notificationsEnabled: Boolean!
    email:String!
    phone:String!
    profileImage: Upload
}
normativepcoder
  • 285
  • 3
  • 9
  • Does this answer your question? [Is there any way to upload files via postman into a GraphQL API?](https://stackoverflow.com/questions/61892306/is-there-any-way-to-upload-files-via-postman-into-a-graphql-api) – bitoiu Oct 20 '22 at 10:54

0 Answers0