MCPcopy Index your code
hub / github.com/ent/ent / FilterRel

Method FilterRel

dialect/sql/sqlgraph/graph.go:1632–1640  ·  view source on GitHub ↗

FilterRel returns edges for the given relation type.

(r Rel)

Source from the content-addressed store, hash-verified

1630
1631// FilterRel returns edges for the given relation type.
1632func (es EdgeSpecs) FilterRel(r Rel) EdgeSpecs {
1633 edges := make([]*EdgeSpec, 0, len(es))
1634 for _, edge := range es {
1635 if edge.Rel == r {
1636 edges = append(edges, edge)
1637 }
1638 }
1639 return edges
1640}
1641
1642// The common operations shared between the different builders.
1643//

Callers 1

batchAddM2MMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected