MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / RemovedEdges

Method RemovedEdges

ent/mutation.go:16651–16678  ·  view source on GitHub ↗

RemovedEdges returns all edge names that were removed in this mutation.

()

Source from the content-addressed store, hash-verified

16649
16650// RemovedEdges returns all edge names that were removed in this mutation.
16651func (m *UserMutation) RemovedEdges() []string {
16652 edges := make([]string, 0, 9)
16653 if m.removedfiles != nil {
16654 edges = append(edges, user.EdgeFiles)
16655 }
16656 if m.removeddav_accounts != nil {
16657 edges = append(edges, user.EdgeDavAccounts)
16658 }
16659 if m.removedshares != nil {
16660 edges = append(edges, user.EdgeShares)
16661 }
16662 if m.removedpasskey != nil {
16663 edges = append(edges, user.EdgePasskey)
16664 }
16665 if m.removedtasks != nil {
16666 edges = append(edges, user.EdgeTasks)
16667 }
16668 if m.removedfsevents != nil {
16669 edges = append(edges, user.EdgeFsevents)
16670 }
16671 if m.removedentities != nil {
16672 edges = append(edges, user.EdgeEntities)
16673 }
16674 if m.removedoauth_grants != nil {
16675 edges = append(edges, user.EdgeOauthGrants)
16676 }
16677 return edges
16678}
16679
16680// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with
16681// the given name in this mutation.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected