NewStep gets list of options and returns a configured step. NewStep( From("table", "pk", V), To("table", "pk"), Edge("name", O2M, "fk"), )
(opts ...StepOption)
| 136 | // Edge("name", O2M, "fk"), |
| 137 | // ) |
| 138 | func NewStep(opts ...StepOption) *Step { |
| 139 | s := &Step{} |
| 140 | for _, opt := range opts { |
| 141 | opt(s) |
| 142 | } |
| 143 | return s |
| 144 | } |
| 145 | |
| 146 | // FromEdgeOwner returns true if the step is from an edge owner. |
| 147 | // i.e., from the table that holds the foreign-key. |
no outgoing calls
searching dependent graphs…