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.
()
| 14315 | // ID returns the ID value in the mutation. Note that the ID is only available |
| 14316 | // if it was provided to the builder or after it was returned from the database. |
| 14317 | func (m *UserMutation) ID() (id uuid.UUID, exists bool) { |
| 14318 | if m.id == nil { |
| 14319 | return |
| 14320 | } |
| 14321 | return *m.id, true |
| 14322 | } |
| 14323 | |
| 14324 | // IDs queries the database and returns the entity ids that match the mutation's predicate. |
| 14325 | // That means, if the mutation is applied within a transaction with an isolation level such |