ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
()
| 176 | // ID returns the ID value in the mutation. Note that the ID is only available |
| 177 | // if it was provided to the builder or after it was returned from the database. |
| 178 | func (m *APITokenMutation) ID() (id uuid.UUID, exists bool) { |
| 179 | if m.id == nil { |
| 180 | return |
| 181 | } |
| 182 | return *m.id, true |
| 183 | } |
| 184 | |
| 185 | // IDs queries the database and returns the entity ids that match the mutation's predicate. |
| 186 | // That means, if the mutation is applied within a transaction with an isolation level such |