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

Function copyValue

dql/mutation.go:202–210  ·  view source on GitHub ↗
(out *pb.DirectedEdge, nq NQuad)

Source from the content-addressed store, hash-verified

200}
201
202func copyValue(out *pb.DirectedEdge, nq NQuad) error {
203 var err error
204 var t types.TypeID
205 if out.Value, t, err = byteVal(nq); err != nil {
206 return err
207 }
208 out.ValueType = t.Enum()
209 return nil
210}
211
212func (nq NQuad) valueType() x.ValueTypeInfo {
213 hasValue := nq.ObjectValue != nil

Callers 2

CreateValueEdgeMethod · 0.85
ToDeletePredEdgeMethod · 0.85

Calls 2

EnumMethod · 0.95
byteValFunction · 0.85

Tested by

no test coverage detected