SetFile sets the "file" edge to the File entity.
(f *File)
| 340 | |
| 341 | // SetFile sets the "file" edge to the File entity. |
| 342 | func (muo *MetadataUpdateOne) SetFile(f *File) *MetadataUpdateOne { |
| 343 | return muo.SetFileID(f.ID) |
| 344 | } |
| 345 | |
| 346 | // Mutation returns the MetadataMutation object of the builder. |
| 347 | func (muo *MetadataUpdateOne) Mutation() *MetadataMutation { |