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)
| 363 | // Select allows selecting one or more fields (columns) of the returned entity. |
| 364 | // The default is selecting all fields defined in the entity schema. |
| 365 | func (muo *MetadataUpdateOne) Select(field string, fields ...string) *MetadataUpdateOne { |
| 366 | muo.fields = append([]string{field}, fields...) |
| 367 | return muo |
| 368 | } |
| 369 | |
| 370 | // Save executes the query and returns the updated Metadata entity. |
| 371 | func (muo *MetadataUpdateOne) Save(ctx context.Context) (*Metadata, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected