(schema: GraphQLSchema)
| 134 | * ``` |
| 135 | */ |
| 136 | export function assertValidSchema(schema: GraphQLSchema): void { |
| 137 | const errors = validateSchema(schema); |
| 138 | if (errors.length !== 0) { |
| 139 | throw new Error(errors.map((error) => error.message).join('\n\n')); |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | class SchemaValidationContext { |
| 144 | readonly _errors: Array<GraphQLError>; |
no test coverage detected