MCPcopy
hub / github.com/dgraph-io/dgraph / getCurrentGraphQLSchema

Function getCurrentGraphQLSchema

graphql/admin/admin.go:792–799  ·  view source on GitHub ↗
(namespace uint64)

Source from the content-addressed store, hash-verified

790}
791
792func getCurrentGraphQLSchema(namespace uint64) (*worker.GqlSchema, error) {
793 uid, graphQLSchema, err := edgraph.GetGQLSchema(namespace)
794 if err != nil {
795 return nil, err
796 }
797
798 return &worker.GqlSchema{ID: uid, Schema: graphQLSchema}, nil
799}
800
801func generateGQLSchema(sch *worker.GqlSchema, ns uint64) (schema.Schema, error) {
802 schHandler, err := schema.NewHandler(sch.Schema, false)

Callers 2

initServerMethod · 0.85
lazyLoadSchemaMethod · 0.85

Calls 1

GetGQLSchemaFunction · 0.92

Tested by

no test coverage detected