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