useVariables sets the variables gh sent, which @include and @skip read.
(op *ast.OperationDefinition, raw json.RawMessage)
| 64 | |
| 65 | // useVariables sets the variables gh sent, which @include and @skip read. |
| 66 | func (s *gqlScaffolder) useVariables(op *ast.OperationDefinition, raw json.RawMessage) error { |
| 67 | var err error |
| 68 | s.vars, err = operationVariables(op, raw) |
| 69 | return err |
| 70 | } |
| 71 | |
| 72 | func operationVariables(op *ast.OperationDefinition, raw json.RawMessage) (map[string]any, error) { |
| 73 | var values map[string]any |
no test coverage detected