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

Method addInternalNode

query/outputnode.go:1305–1312  ·  view source on GitHub ↗
(enc *encoder, uid uint64, dst fastJsonNode)

Source from the content-addressed store, hash-verified

1303}
1304
1305func (sg *SubGraph) addInternalNode(enc *encoder, uid uint64, dst fastJsonNode) error {
1306 sv, ok := sg.Params.UidToVal.Get(uid)
1307 if !ok || sv.Value == nil {
1308 return nil
1309 }
1310 fieldName := sg.aggWithVarFieldName()
1311 return enc.AddValue(dst, enc.idForAttr(fieldName), sv)
1312}
1313
1314func (sg *SubGraph) addCheckPwd(enc *encoder, vals []*pb.TaskValue, dst fastJsonNode) error {
1315 c := types.ValueForType(types.BoolID)

Callers 1

preTraverseMethod · 0.80

Calls 4

aggWithVarFieldNameMethod · 0.95
AddValueMethod · 0.80
idForAttrMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected