RemoveFileIDs removes the "files" edge to the File entity by IDs.
(ids ...int)
| 15778 | |
| 15779 | // RemoveFileIDs removes the "files" edge to the File entity by IDs. |
| 15780 | func (m *UserMutation) RemoveFileIDs(ids ...int) { |
| 15781 | if m.removedfiles == nil { |
| 15782 | m.removedfiles = make(map[int]struct{}) |
| 15783 | } |
| 15784 | for i := range ids { |
| 15785 | delete(m.files, ids[i]) |
| 15786 | m.removedfiles[ids[i]] = struct{}{} |
| 15787 | } |
| 15788 | } |
| 15789 | |
| 15790 | // RemovedFiles returns the removed IDs of the "files" edge to the File entity. |
| 15791 | func (m *UserMutation) RemovedFilesIDs() (ids []int) { |
nothing calls this directly
no outgoing calls
no test coverage detected