We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e6847a9 + 95e3e68 commit 5e56fcaCopy full SHA for 5e56fca
clientgen/template.gotpl
@@ -18,6 +18,10 @@ type Client struct {
18
Client *client.Client
19
}
20
21
+func NewClient(cli *http.Client, baseURL string, options ...client.HTTPRequestOption) *Client {
22
+ return &Client{Client: client.NewClient(cli, baseURL, options...)}
23
+}
24
+
25
type {{ .Query.Name | go }} {{ .Query.Type | ref }}
26
27
type {{ .Mutation.Name | go }} {{ .Mutation.Type | ref }}
0 commit comments