NewEntityClient returns a client for the Entity from the given config.
(c config)
| 640 | |
| 641 | // NewEntityClient returns a client for the Entity from the given config. |
| 642 | func NewEntityClient(c config) *EntityClient { |
| 643 | return &EntityClient{config: c} |
| 644 | } |
| 645 | |
| 646 | // Use adds a list of mutation hooks to the hooks stack. |
| 647 | // A call to `Use(f, g, h)` equals to `entity.Hooks(f(g(h())))`. |