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

Function constructQuery

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

Source from the content-addressed store, hash-verified

37)
38
39func constructQuery(v any, variables map[string]any) string {
40 query := query(v)
41 if len(variables) > 0 {
42 return "query(" + queryArguments(variables) + ")" + query
43 }
44 return query
45}
46
47func constructMutation(v any, variables map[string]any) string {
48 query := query(v)

Callers 1

NewQueryMatcherFunction · 0.85

Calls 2

queryFunction · 0.85
queryArgumentsFunction · 0.85

Tested by

no test coverage detected