RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
(name string)
| 16680 | // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with |
| 16681 | // the given name in this mutation. |
| 16682 | func (m *UserMutation) RemovedIDs(name string) []ent.Value { |
| 16683 | switch name { |
| 16684 | case user.EdgeFiles: |
| 16685 | ids := make([]ent.Value, 0, len(m.removedfiles)) |
| 16686 | for id := range m.removedfiles { |
| 16687 | ids = append(ids, id) |
| 16688 | } |
| 16689 | return ids |
| 16690 | case user.EdgeDavAccounts: |
| 16691 | ids := make([]ent.Value, 0, len(m.removeddav_accounts)) |
| 16692 | for id := range m.removeddav_accounts { |
| 16693 | ids = append(ids, id) |
| 16694 | } |
| 16695 | return ids |
| 16696 | case user.EdgeShares: |
| 16697 | ids := make([]ent.Value, 0, len(m.removedshares)) |
| 16698 | for id := range m.removedshares { |
| 16699 | ids = append(ids, id) |
| 16700 | } |
| 16701 | return ids |
| 16702 | case user.EdgePasskey: |
| 16703 | ids := make([]ent.Value, 0, len(m.removedpasskey)) |
| 16704 | for id := range m.removedpasskey { |
| 16705 | ids = append(ids, id) |
| 16706 | } |
| 16707 | return ids |
| 16708 | case user.EdgeTasks: |
| 16709 | ids := make([]ent.Value, 0, len(m.removedtasks)) |
| 16710 | for id := range m.removedtasks { |
| 16711 | ids = append(ids, id) |
| 16712 | } |
| 16713 | return ids |
| 16714 | case user.EdgeFsevents: |
| 16715 | ids := make([]ent.Value, 0, len(m.removedfsevents)) |
| 16716 | for id := range m.removedfsevents { |
| 16717 | ids = append(ids, id) |
| 16718 | } |
| 16719 | return ids |
| 16720 | case user.EdgeEntities: |
| 16721 | ids := make([]ent.Value, 0, len(m.removedentities)) |
| 16722 | for id := range m.removedentities { |
| 16723 | ids = append(ids, id) |
| 16724 | } |
| 16725 | return ids |
| 16726 | case user.EdgeOauthGrants: |
| 16727 | ids := make([]ent.Value, 0, len(m.removedoauth_grants)) |
| 16728 | for id := range m.removedoauth_grants { |
| 16729 | ids = append(ids, id) |
| 16730 | } |
| 16731 | return ids |
| 16732 | } |
| 16733 | return nil |
| 16734 | } |
| 16735 | |
| 16736 | // ClearedEdges returns all edge names that were cleared in this mutation. |
| 16737 | func (m *UserMutation) ClearedEdges() []string { |
nothing calls this directly
no outgoing calls
no test coverage detected