GraphQL HotChocolate file upload

GraphQL HotChocolate file upload


0

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

GraphQL HotChocolate file upload


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?


Load 6 more related questions


Show fewer related questions

0



Leave a Reply

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