MCPcopy Create free account
hub / github.com/ent/ent / FromEdgeOwner

Method FromEdgeOwner

dialect/sql/sqlgraph/graph.go:148–150  ·  view source on GitHub ↗

FromEdgeOwner returns true if the step is from an edge owner. i.e., from the table that holds the foreign-key.

()

Source from the content-addressed store, hash-verified

146// FromEdgeOwner returns true if the step is from an edge owner.
147// i.e., from the table that holds the foreign-key.
148func (s *Step) FromEdgeOwner() bool {
149 return s.Edge.Rel == M2O || (s.Edge.Rel == O2O && s.Edge.Inverse)
150}
151
152// ToEdgeOwner returns true if the step is to an edge owner.
153// i.e., to the table that holds the foreign-key.

Callers 6

NeighborsFunction · 0.80
SetNeighborsFunction · 0.80
HasNeighborsFunction · 0.80
HasNeighborsWithFunction · 0.80
OrderByNeighborsCountFunction · 0.80
OrderByNeighborTermsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected