MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / GetFullSchemaHTTPResponse

Function GetFullSchemaHTTPResponse

dgraphapi/schema.go:97–99  ·  view source on GitHub ↗

GetFullSchemaHTTPResponse returns a string representation of the HTTP response returned by the full schema{} query. It uses the user provided predicates and types along with the initial internal schema to generate the string. Example response looks like: { "data": { "schema": [ ... ], "typ

(opts SchemaOptions)

Source from the content-addressed store, hash-verified

95// }
96// }
97func GetFullSchemaHTTPResponse(opts SchemaOptions) string {
98 return `{"data":` + GetFullSchemaJSON(opts) + `}`
99}
100
101// GetFullSchemaJSON returns a string representation of the JSON object returned by the full
102// schema{} query. It uses the user provided predicates and types along with the initial internal

Callers 3

TestDeletePredicateFunction · 0.92
TestListTypeSchemaChangeFunction · 0.92
TestDropAllFunction · 0.92

Calls 1

GetFullSchemaJSONFunction · 0.70

Tested by 3

TestDeletePredicateFunction · 0.74
TestListTypeSchemaChangeFunction · 0.74
TestDropAllFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…