MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / SchemaValidate

Function SchemaValidate

graphql/admin/admin.go:530–538  ·  view source on GitHub ↗
(sch string)

Source from the content-addressed store, hash-verified

528)
529
530func 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.

Callers 1

schemaValidateHandlerFunction · 0.92

Calls 3

GQLSchemaMethod · 0.95
NewHandlerFunction · 0.92
FromStringFunction · 0.92

Tested by

no test coverage detected