AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
(name string)
| 12431 | // AddedIDs returns all IDs (to other nodes) that were added for the given edge |
| 12432 | // name in this mutation. |
| 12433 | func (m *ShareMutation) AddedIDs(name string) []ent.Value { |
| 12434 | switch name { |
| 12435 | case share.EdgeUser: |
| 12436 | if id := m.user; id != nil { |
| 12437 | return []ent.Value{*id} |
| 12438 | } |
| 12439 | case share.EdgeFile: |
| 12440 | if id := m.file; id != nil { |
| 12441 | return []ent.Value{*id} |
| 12442 | } |
| 12443 | } |
| 12444 | return nil |
| 12445 | } |
| 12446 | |
| 12447 | // RemovedEdges returns all edge names that were removed in this mutation. |
| 12448 | func (m *ShareMutation) RemovedEdges() []string { |
nothing calls this directly
no outgoing calls
no test coverage detected