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

Method toDqlJSON

query/outputnode.go:1227–1233  ·  view source on GitHub ↗
(enc *encoder, n fastJsonNode)

Source from the content-addressed store, hash-verified

1225}
1226
1227func (sg *SubGraph) toDqlJSON(enc *encoder, n fastJsonNode) error {
1228 if enc.children(n) == nil {
1229 x.Check2(enc.buf.WriteString(`{}`))
1230 return nil
1231 }
1232 return enc.encode(n)
1233}
1234
1235func (sg *SubGraph) toGraphqlJSON(genc *graphQLEncoder, n fastJsonNode, f gqlSchema.Field) error {
1236 // GraphQL queries will always have at least one query whose results are visible to users,

Callers 1

toFastJSONMethod · 0.95

Calls 3

Check2Function · 0.92
childrenMethod · 0.80
encodeMethod · 0.45

Tested by

no test coverage detected