Skip to content

Commit

Permalink
Add graphql id to http requests
Browse files Browse the repository at this point in the history
  • Loading branch information
SaaldjorMike committed Dec 16, 2024
1 parent 2d5d5d6 commit df58bf8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/api/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit df58bf8

Please sign in to comment.