(ctx, field)
| 139 | }; |
| 140 | |
| 141 | function getMethod(ctx, field) { |
| 142 | if (isEnum(getType(ctx, field))) return TYPES.enum; |
| 143 | const t = TYPES[field.type]; |
| 144 | if (!t) throw new Error(`Unexpected type: ${field.type}`); |
| 145 | return t; |
| 146 | } |
| 147 | |
| 148 | // JS_STRING serializes numeric scalars as strings — applies to every TYPES entry except the non-numeric ones. |
| 149 | function fieldShouldUseStringAsNumber(field) { |
no test coverage detected
searching dependent graphs…