Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
()
| 10942 | // Client returns a new `ent.Client` from the mutation. If the mutation was |
| 10943 | // executed in a transaction (ent.Tx), a transactional client is returned. |
| 10944 | func (m ProjectMutation) Client() *Client { |
| 10945 | client := &Client{config: m.config} |
| 10946 | client.init() |
| 10947 | return client |
| 10948 | } |
| 10949 | |
| 10950 | // Tx returns an `ent.Tx` for mutations that were executed in transactions; |
| 10951 | // it returns an error otherwise. |