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

Method AddedIDs

ent/mutation.go:7062–7070  ·  view source on GitHub ↗

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

(name string)

Source from the content-addressed store, hash-verified

7060// AddedIDs returns all IDs (to other nodes) that were added for the given edge
7061// name in this mutation.
7062func (m *MetadataMutation) AddedIDs(name string) []ent.Value {
7063 switch name {
7064 case metadata.EdgeFile:
7065 if id := m.file; id != nil {
7066 return []ent.Value{*id}
7067 }
7068 }
7069 return nil
7070}
7071
7072// RemovedEdges returns all edge names that were removed in this mutation.
7073func (m *MetadataMutation) RemovedEdges() []string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected