FileIDs returns the "file" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use FileID instead. It exists only for internal usage by the builders.
()
| 6791 | // Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use |
| 6792 | // FileID instead. It exists only for internal usage by the builders. |
| 6793 | func (m *MetadataMutation) FileIDs() (ids []int) { |
| 6794 | if id := m.file; id != nil { |
| 6795 | ids = append(ids, *id) |
| 6796 | } |
| 6797 | return |
| 6798 | } |
| 6799 | |
| 6800 | // ResetFile resets all changes to the "file" edge. |
| 6801 | func (m *MetadataMutation) ResetFile() { |
nothing calls this directly
no outgoing calls
no test coverage detected