How to upload file using graphql-client?

How to upload file using graphql-client?


0

How can I make a mutation call from a client and upload a file?
I can do it in the editor (screen)

How to upload file using graphql-client?


But I cannot figure out how to make the same from a client

var request = new GraphQLRequest
            {
                Query = query,
                Variables = new { id = "id" },
            };

            var graphQLResponse = await _client.SendMutationAsync<dynamic>(request );

where should I put the byte[] from an image?

1


Load 7 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *