'Sending object/string/number using formData in graphql

Is it possible to send other types than File (fileUpload) like Strings or Objests in Graphql using formData?

I want to send a request including a File and an Object. In sending request with Restful, formData can be parsed, but in Graphql, everything will be converted into a Upload type (scalar Upload) so my request get failed, but I need to send Objects too. I couldn't find any way to send Object in formData in Graphql. How can I do this?

The request I want to have:

curl --location --request POST 'http://localhost:3000/graphql' \
--form 'operations="{\"query\":\"mutation createDocumentMutation ($createDocumentInput: CreateDocumentInput!,$document: Upload! ) {createDocument(createDocumentInput:$createDocumentInput, document:$document) {name}}\"}"' \
--form 'map="{\"0\":[\"variables.createDocumentInput\"], \"1\":[\"variables.document\"]}"' \
--form '0="{\"name\":\"John\", \"userId\":\"12121212\"}"' \
--form '1=@"./image.png"' 


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source