EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
(name string)
| 12471 | // EdgeCleared returns a boolean which indicates if the edge with the given name |
| 12472 | // was cleared in this mutation. |
| 12473 | func (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. |
nothing calls this directly
no outgoing calls
no test coverage detected