UpdateOne returns an update builder for the given entity.
(f *File)
| 872 | |
| 873 | // UpdateOne returns an update builder for the given entity. |
| 874 | func (c *FileClient) UpdateOne(f *File) *FileUpdateOne { |
| 875 | mutation := newFileMutation(c.config, OpUpdateOne, withFile(f)) |
| 876 | return &FileUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} |
| 877 | } |
| 878 | |
| 879 | // UpdateOneID returns an update builder for the given id. |
| 880 | func (c *FileClient) UpdateOneID(id int) *FileUpdateOne { |