MCPcopy Index your code
hub / github.com/github/github-mcp-server / constructMutation

Function constructMutation

internal/githubv4mock/query.go:47–53  ·  view source on GitHub ↗
(v any, variables map[string]any)

Source from the content-addressed store, hash-verified

45}
46
47func constructMutation(v any, variables map[string]any) string {
48 query := query(v)
49 if len(variables) > 0 {
50 return "mutation(" + queryArguments(variables) + ")" + query
51 }
52 return "mutation" + query
53}
54
55// queryArguments constructs a minified arguments string for variables.
56//

Callers 1

NewMutationMatcherFunction · 0.85

Calls 2

queryFunction · 0.85
queryArgumentsFunction · 0.85

Tested by

no test coverage detected