SetFile sets the "file" edge to the File entity.
(f *File)
| 178 | |
| 179 | // SetFile sets the "file" edge to the File entity. |
| 180 | func (sc *ShareCreate) SetFile(f *File) *ShareCreate { |
| 181 | return sc.SetFileID(f.ID) |
| 182 | } |
| 183 | |
| 184 | // Mutation returns the ShareMutation object of the builder. |
| 185 | func (sc *ShareCreate) Mutation() *ShareMutation { |