CreateUidEdge returns a Directed edge connecting the given subject and object UIDs.
(subjectUid uint64, objectUid uint64)
| 123 | |
| 124 | // CreateUidEdge returns a Directed edge connecting the given subject and object UIDs. |
| 125 | func (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. |
no test coverage detected