From df58bf8f630a569cd4503c2e2fc5ebda10f4def0 Mon Sep 17 00:00:00 2001 From: Mike Rostermund Date: Mon, 16 Dec 2024 14:14:29 +0100 Subject: [PATCH] Add graphql id to http requests --- internal/api/client.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/api/client.go b/internal/api/client.go index c649d8f6..50935453 100644 --- a/internal/api/client.go +++ b/internal/api/client.go @@ -95,7 +95,11 @@ func (c *Client) MakeRequest(ctx context.Context, req *graphql.Request, resp *gr if err != nil { return err } - graphqlURL, err := c.Address().Parse("graphql") + opName := "unknown" + if req.OpName != "" { + opName = req.OpName + } + graphqlURL, err := c.Address().Parse(fmt.Sprintf("graphql?id=%s", opName)) if err != nil { return nil }