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)
| 1305 | // Select allows selecting one or more fields (columns) of the returned entity. |
| 1306 | // The default is selecting all fields defined in the entity schema. |
| 1307 | func (fuo *FileUpdateOne) Select(field string, fields ...string) *FileUpdateOne { |
| 1308 | fuo.fields = append([]string{field}, fields...) |
| 1309 | return fuo |
| 1310 | } |
| 1311 | |
| 1312 | // Save executes the query and returns the updated File entity. |
| 1313 | func (fuo *FileUpdateOne) Save(ctx context.Context) (*File, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected