Append extends a chain, adding the specified hook as the last ones in the mutation flow.
(hooks ...ent.Hook)
| 414 | // Append extends a chain, adding the specified hook |
| 415 | // as the last ones in the mutation flow. |
| 416 | func (c Chain) Append(hooks ...ent.Hook) Chain { |
| 417 | newHooks := make([]ent.Hook, 0, len(c.hooks)+len(hooks)) |
| 418 | newHooks = append(newHooks, c.hooks...) |
| 419 | newHooks = append(newHooks, hooks...) |
| 420 | return Chain{newHooks} |
| 421 | } |
| 422 | |
| 423 | // Extend extends a chain, adding the specified chain |
| 424 | // as the last ones in the mutation flow. |
no outgoing calls
no test coverage detected