introspect answers __type and __schema as GitHub would. gh asks which fields a type has to decide which queries to send. For example, gh issue develop stops if the LinkedBranch type has no fields, so placeholders here would change what gh does.
(f *ast.Field, sel ast.SelectionSet)
| 20 | // develop stops if the LinkedBranch type has no fields, so placeholders here |
| 21 | // would change what gh does. |
| 22 | func (s *gqlScaffolder) introspect(f *ast.Field, sel ast.SelectionSet) any { |
| 23 | return s.introValue(s.introspectionRoot(f), sel) |
| 24 | } |
| 25 | |
| 26 | func (s *gqlScaffolder) introspectionRoot(f *ast.Field) introObject { |
| 27 | switch f.Name { |
no test coverage detected