(ast: SchemaAST.AST)
| 686 | ) |
| 687 | |
| 688 | const isScalarInput = (ast: SchemaAST.AST): boolean => { |
| 689 | switch (ast._tag) { |
| 690 | case "Union": |
| 691 | return ast.types.every(isScalarInput) |
| 692 | case "Objects": |
| 693 | case "Arrays": |
| 694 | case "Suspend": |
| 695 | return false |
| 696 | default: |
| 697 | return true |
| 698 | } |
| 699 | } |
| 700 | |
| 701 | const hasProviderInput = ( |
| 702 | ast: SchemaAST.AST, |