Edge sets the edge info for getting the neighbors.
(rel Rel, inverse bool, table string, columns ...string)
| 120 | |
| 121 | // Edge sets the edge info for getting the neighbors. |
| 122 | func 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 | // |
no outgoing calls
searching dependent graphs…