(ast: SchemaAST.AST)
| 697 | ) |
| 698 | |
| 699 | const isScalarInput = (ast: SchemaAST.AST): boolean => { |
| 700 | switch (ast._tag) { |
| 701 | case "Union": |
| 702 | return ast.types.every(isScalarInput) |
| 703 | case "Objects": |
| 704 | case "Arrays": |
| 705 | case "Suspend": |
| 706 | return false |
| 707 | default: |
| 708 | return true |
| 709 | } |
| 710 | } |
| 711 | |
| 712 | const hasProviderInput = ( |
| 713 | ast: SchemaAST.AST, |