(sch string)
| 528 | ) |
| 529 | |
| 530 | func SchemaValidate(sch string) error { |
| 531 | schHandler, err := schema.NewHandler(sch, false) |
| 532 | if err != nil { |
| 533 | return err |
| 534 | } |
| 535 | |
| 536 | _, err = schema.FromString(schHandler.GQLSchema(), x.RootNamespace) |
| 537 | return err |
| 538 | } |
| 539 | |
| 540 | // GraphQLHealth is used to report the health status of a GraphQL server. |
| 541 | // It is required for kubernetes probing. |
no test coverage detected