-
Notifications
You must be signed in to change notification settings - Fork 219
Open
Description
I try to do it in following way:
clt := mgql.NewClient("http://0.0.0.0:7071/graphql", mgql.UseMultipartForm())
query := `
mutation ($files: [Upload!]!) {
addLpFiles( input: { files: $files })
{success}}`
req := mgql.NewRequest(query)
for i, s := range []string{"aaa", "bbb"} {
r := strings.NewReader(s)
req.File("files."+strconv.Itoa(i), s, r)
//req.File(strconv.Itoa(i), s, r)
}
err := clt.Run(ctx, req, nil)
if err != nil {
return err
}... and get error - graphql: first part must be operations.
PS: without .UseMultipartForm() usual read queries go well
Metadata
Metadata
Assignees
Labels
No labels