How can I make a mutation call from a client and upload a file?
I can do it in the editor (screen)
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
It's not about HotChocolate, it's about graphql-client. And as I can see graphql-client doesn't support file uploading: github.com/graphql-dotnet/graphql-client/issues/101
Sep 7 at 16:34