(type: GraphQLInputType, value: any)
| 66 | } |
| 67 | |
| 68 | export function parseInputValue(type: GraphQLInputType, value: any) { |
| 69 | return transformInputValue(type, value, (t, v) => { |
| 70 | try { |
| 71 | return t.parseValue(v); |
| 72 | } catch { |
| 73 | return v; |
| 74 | } |
| 75 | }); |
| 76 | } |
| 77 | |
| 78 | export function parseInputValueLiteral(type: GraphQLInputType, value: any) { |
| 79 | return transformInputValue(type, value, (t, v) => t.parseLiteral(v, {})); |
nothing calls this directly
no test coverage detected