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

Method CreateUidEdge

dql/mutation.go:125–130  ·  view source on GitHub ↗

CreateUidEdge returns a Directed edge connecting the given subject and object UIDs.

(subjectUid uint64, objectUid uint64)

Source from the content-addressed store, hash-verified

123
124// CreateUidEdge returns a Directed edge connecting the given subject and object UIDs.
125func (nq NQuad) CreateUidEdge(subjectUid uint64, objectUid uint64) *pb.DirectedEdge {
126 out := nq.createEdgePrototype(subjectUid)
127 out.ValueId = objectUid
128 out.ValueType = pb.Posting_UID
129 return out
130}
131
132// CreateValueEdge returns a DirectedEdge with the given subject. The predicate,
133// language, and facet values are derived from the NQuad.

Callers 2

ToEdgeUsingMethod · 0.95
processNQuadMethod · 0.80

Calls 1

createEdgePrototypeMethod · 0.95

Tested by

no test coverage detected