(namespace uint64)
| 790 | } |
| 791 | |
| 792 | func 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 | |
| 801 | func generateGQLSchema(sch *worker.GqlSchema, ns uint64) (schema.Schema, error) { |
| 802 | schHandler, err := schema.NewHandler(sch.Schema, false) |
no test coverage detected