39
Views
0
Comments
[GraphQLTools] How to upload a file into a graphQl endpoint
Question
graphqltools-xif
Service icon
Forge asset by Denis Orlandi de Souza
Application Type
Mobile
Service Studio Version
11.51.0 (Build 54014)

Hello! So I have this Apollo graphQL server that expects a file to be sent in a call like this: 


operations ->  {"query":"mutation CreateReports($file: Upload!) {\n createReports(report: { Descricao: \"123089asdnk\", Data:\"2021-12-03\", Hora: \"00:48:23\", Coordenadas: \"40.9938243, -8.1122416\", Distrito: \"\", Concelho: \"\", CodigoPostal: \"\", Freguesia: \"\", NrVotos: 0, Denunciado: false, DataConclusao: \"\", DescricaoAdmin: \"\", TipoOcorrenciaId: \"617720b3fead7a205d3539ae\", UserId: \"\", Fotos : [\"xmnnqo\", \"sp1d\"] }, file: $file) {\n Id\n }\n}"}

The file is suposed to go on $file, how can i achieve this through outsystems?
Really need this :( thanks for any help

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.