AddFileIDs adds the "files" edge to the File entity by ids.
(ids ...int)
| 15758 | |
| 15759 | // AddFileIDs adds the "files" edge to the File entity by ids. |
| 15760 | func (m *UserMutation) AddFileIDs(ids ...int) { |
| 15761 | if m.files == nil { |
| 15762 | m.files = make(map[int]struct{}) |
| 15763 | } |
| 15764 | for i := range ids { |
| 15765 | m.files[ids[i]] = struct{}{} |
| 15766 | } |
| 15767 | } |
| 15768 | |
| 15769 | // ClearFiles clears the "files" edge to the File entity. |
| 15770 | func (m *UserMutation) ClearFiles() { |
nothing calls this directly
no outgoing calls
no test coverage detected