Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
()
| 7203 | // Client returns a new `ent.Client` from the mutation. If the mutation was |
| 7204 | // executed in a transaction (ent.Tx), a transactional client is returned. |
| 7205 | func (m NodeMutation) Client() *Client { |
| 7206 | client := &Client{config: m.config} |
| 7207 | client.init() |
| 7208 | return client |
| 7209 | } |
| 7210 | |
| 7211 | // Tx returns an `ent.Tx` for mutations that were executed in transactions; |
| 7212 | // it returns an error otherwise. |