MCPcopy Create free account
hub / github.com/cli/cli / graphQLFieldNames

Function graphQLFieldNames

script/ghmock/schemacmd.go:249–257  ·  view source on GitHub ↗
(def *ast.Definition)

Source from the content-addressed store, hash-verified

247}
248
249func graphQLFieldNames(def *ast.Definition) []string {
250 var names []string
251 for _, f := range def.Fields {
252 if !strings.HasPrefix(f.Name, "__") {
253 names = append(names, f.Name)
254 }
255 }
256 return names
257}
258
259// describeREST writes what GitHub's REST description says about a request and
260// the body of one of its responses.

Callers 1

describeGraphQLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected