How to upload file using graphql-client?

156 views Asked by At

How can I make a mutation call from a client and upload a file? I can do it in the editor (screen)enter image description here 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?

0

There are 0 answers