MCPcopy
hub / github.com/ent/ent / Edge

Function Edge

dialect/sql/sqlgraph/graph.go:122–129  ·  view source on GitHub ↗

Edge sets the edge info for getting the neighbors.

(rel Rel, inverse bool, table string, columns ...string)

Source from the content-addressed store, hash-verified

120
121// Edge sets the edge info for getting the neighbors.
122func Edge(rel Rel, inverse bool, table string, columns ...string) StepOption {
123 return func(s *Step) {
124 s.Edge.Rel = rel
125 s.Edge.Table = table
126 s.Edge.Columns = columns
127 s.Edge.Inverse = inverse
128 }
129}
130
131// NewStep gets list of options and returns a configured step.
132//

Callers 15

OrderByEdgeCountFunction · 0.92
OrderByEdgeTermsFunction · 0.92
QueryOwnerMethod · 0.92
QueryAdminsMethod · 0.92
QueryAdminsMethod · 0.92
QueryOwnerMethod · 0.92
QueryOwnerMethod · 0.92
QueryCarMethod · 0.92
QueryPetsMethod · 0.92
QueryFriendsMethod · 0.92
QueryCarMethod · 0.92
QueryPetsMethod · 0.92

Calls

no outgoing calls

Tested by 9

OrderByEdgeCountFunction · 0.74
OrderByEdgeTermsFunction · 0.74
TestNeighborsFunction · 0.56
TestSetNeighborsFunction · 0.56
TestHasNeighborsFunction · 0.56
TestHasNeighborsWithFunction · 0.56
TestOrderByNeighborTermsFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…