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

Method EdgeCleared

ent/mutation.go:12473–12481  ·  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

12471// EdgeCleared returns a boolean which indicates if the edge with the given name
12472// was cleared in this mutation.
12473func (m *ShareMutation) EdgeCleared(name string) bool {
12474 switch name {
12475 case share.EdgeUser:
12476 return m.cleareduser
12477 case share.EdgeFile:
12478 return m.clearedfile
12479 }
12480 return false
12481}
12482
12483// ClearEdge clears the value of the edge with the given name. It returns an error
12484// if that edge is not defined in the schema.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected