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)
| 1551 | // Select allows selecting one or more fields (columns) of the returned entity. |
| 1552 | // The default is selecting all fields defined in the entity schema. |
| 1553 | func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne { |
| 1554 | uuo.fields = append([]string{field}, fields...) |
| 1555 | return uuo |
| 1556 | } |
| 1557 | |
| 1558 | // Save executes the query and returns the updated User entity. |
| 1559 | func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected