(def *ast.Definition)
| 247 | } |
| 248 | |
| 249 | func 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. |