Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
(field string, fields ...string)
| 439 | // Select allows selecting one or more fields (columns) of the returned entity. |
| 440 | // The default is selecting all fields defined in the entity schema. |
| 441 | func (tuo *TaskUpdateOne) Select(field string, fields ...string) *TaskUpdateOne { |
| 442 | tuo.fields = append([]string{field}, fields...) |
| 443 | return tuo |
| 444 | } |
| 445 | |
| 446 | // Save executes the query and returns the updated Task entity. |
| 447 | func (tuo *TaskUpdateOne) Save(ctx context.Context) (*Task, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected