(schema *ast.Schema, op ast.Operation)
| 172 | } |
| 173 | |
| 174 | func rootType(schema *ast.Schema, op ast.Operation) *ast.Definition { |
| 175 | switch op { |
| 176 | case ast.Mutation: |
| 177 | return schema.Mutation |
| 178 | case ast.Subscription: |
| 179 | return schema.Subscription |
| 180 | default: |
| 181 | return schema.Query |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | // gqlWalker walks a response alongside the query that asked for it. |
| 186 | type gqlWalker struct { |
no outgoing calls
no test coverage detected