Vsevolod Kaganovych05/27/2022, 4:17 PM
The request is built like this
mutation uploadFile($id: String!, $files: [Upload!]!)
But the backend tells me, that the received
val upload = DefaultUpload.Builder() .content(file) .fileName(file.name) .build() val mutation = UploadFileMutation(id = recommendationId, files = listOf(upload))
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?
bod05/27/2022, 4:20 PM