FileID returns the value of the "file_id" field in the mutation.
()
| 6711 | |
| 6712 | // FileID returns the value of the "file_id" field in the mutation. |
| 6713 | func (m *MetadataMutation) FileID() (r int, exists bool) { |
| 6714 | v := m.file |
| 6715 | if v == nil { |
| 6716 | return |
| 6717 | } |
| 6718 | return *v, true |
| 6719 | } |
| 6720 | |
| 6721 | // OldFileID returns the old "file_id" field's value of the Metadata entity. |
| 6722 | // If the Metadata object wasn't provided to the builder, the object is fetched from the database. |