Vsevolod Kaganovych
05/27/2022, 4:17 PMmutation uploadFile($id: String!, $files: [Upload!]!)
The request is built like this
val upload = DefaultUpload.Builder()
.content(file)
.fileName(file.name)
.build()
val mutation = UploadFileMutation(id = recommendationId, files = listOf(upload))
But the backend tells me, that the received files
field is not an array and returns an error to me. Are there any modifications for the multipart request if there's only 1 item to be sent?bod
05/27/2022, 4:20 PM