MCPcopy
hub / github.com/cli/cli / Mutate

Method Mutate

pkg/cmd/project/shared/queries/queries.go:101–104  ·  view source on GitHub ↗

TODO: un-export this since it couples the caller heavily to api.GraphQLClient

(operationName string, query interface{}, variables map[string]interface{})

Source from the content-addressed store, hash-verified

99
100// TODO: un-export this since it couples the caller heavily to api.GraphQLClient
101func (c *Client) Mutate(operationName string, query interface{}, variables map[string]interface{}) error {
102 err := c.apiClient.Mutate(operationName, query, variables)
103 return handleError(err)
104}
105
106func (c *Client) Query(operationName string, query interface{}, variables map[string]interface{}) error {
107 err := c.apiClient.Query(operationName, query, variables)

Calls 2

handleErrorFunction · 0.85
MutateMethod · 0.65