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)
| 595 | // Select allows selecting one or more fields (columns) of the returned entity. |
| 596 | // The default is selecting all fields defined in the entity schema. |
| 597 | func (nuo *NodeUpdateOne) Select(field string, fields ...string) *NodeUpdateOne { |
| 598 | nuo.fields = append([]string{field}, fields...) |
| 599 | return nuo |
| 600 | } |
| 601 | |
| 602 | // Save executes the query and returns the updated Node entity. |
| 603 | func (nuo *NodeUpdateOne) Save(ctx context.Context) (*Node, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected