MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / createUidEdge

Function createUidEdge

dgraph/cmd/live/batch.go:205–215  ·  view source on GitHub ↗
(nq *api.NQuad, sid, oid uint64)

Source from the content-addressed store, hash-verified

203}
204
205func createUidEdge(nq *api.NQuad, sid, oid uint64) *pb.DirectedEdge {
206 return &pb.DirectedEdge{
207 Entity: sid,
208 Attr: nq.Predicate,
209 Namespace: nq.Namespace,
210 Lang: nq.Lang,
211 Facets: nq.Facets,
212 ValueId: oid,
213 ValueType: pb.Posting_UID,
214 }
215}
216
217func createValueEdge(nq *api.NQuad, sid uint64) (*pb.DirectedEdge, error) {
218 p := &pb.DirectedEdge{

Callers 1

conflictKeysForNQuadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected