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

Method createEdgePrototype

dql/mutation.go:114–122  ·  view source on GitHub ↗
(subjectUid uint64)

Source from the content-addressed store, hash-verified

112var emptyEdge pb.DirectedEdge
113
114func (nq NQuad) createEdgePrototype(subjectUid uint64) *pb.DirectedEdge {
115 return &pb.DirectedEdge{
116 Entity: subjectUid,
117 Attr: nq.Predicate,
118 Namespace: nq.Namespace,
119 Lang: nq.Lang,
120 Facets: nq.Facets,
121 }
122}
123
124// CreateUidEdge returns a Directed edge connecting the given subject and object UIDs.
125func (nq NQuad) CreateUidEdge(subjectUid uint64, objectUid uint64) *pb.DirectedEdge {

Callers 2

CreateUidEdgeMethod · 0.95
CreateValueEdgeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected