SetFile sets the "file" edge to the File entity.
(f *File)
| 99 | |
| 100 | // SetFile sets the "file" edge to the File entity. |
| 101 | func (mc *MetadataCreate) SetFile(f *File) *MetadataCreate { |
| 102 | return mc.SetFileID(f.ID) |
| 103 | } |
| 104 | |
| 105 | // Mutation returns the MetadataMutation object of the builder. |
| 106 | func (mc *MetadataCreate) Mutation() *MetadataMutation { |