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

Function query

internal/githubv4mock/query.go:115–119  ·  view source on GitHub ↗

query uses writeQuery to recursively construct a minified query string from the provided struct v. E.g., struct{Foo Int, BarBaz *Boolean} -> "{foo,barBaz}".

(v any)

Source from the content-addressed store, hash-verified

113//
114// E.g., struct{Foo Int, BarBaz *Boolean} -> "{foo,barBaz}".
115func query(v any) string {
116 var buf bytes.Buffer
117 writeQuery(&buf, reflect.TypeOf(v), false)
118 return buf.String()
119}
120
121// writeQuery writes a minified query for t to w.
122// If inline is true, the struct fields of t are inlined into parent struct.

Callers 2

constructQueryFunction · 0.85
constructMutationFunction · 0.85

Calls 2

writeQueryFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected