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

Method EdgeCleared

ent/mutation.go:7095–7101  ·  view source on GitHub ↗

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

(name string)

Source from the content-addressed store, hash-verified

7093// EdgeCleared returns a boolean which indicates if the edge with the given name
7094// was cleared in this mutation.
7095func (m *MetadataMutation) EdgeCleared(name string) bool {
7096 switch name {
7097 case metadata.EdgeFile:
7098 return m.clearedfile
7099 }
7100 return false
7101}
7102
7103// ClearEdge clears the value of the edge with the given name. It returns an error
7104// if that edge is not defined in the schema.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected