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.
()
| 3995 | // ID returns the ID value in the mutation. Note that the ID is only available |
| 3996 | // if it was provided to the builder or after it was returned from the database. |
| 3997 | func (m *GroupMutation) ID() (id uuid.UUID, exists bool) { |
| 3998 | if m.id == nil { |
| 3999 | return |
| 4000 | } |
| 4001 | return *m.id, true |
| 4002 | } |
| 4003 | |
| 4004 | // IDs queries the database and returns the entity ids that match the mutation's predicate. |
| 4005 | // That means, if the mutation is applied within a transaction with an isolation level such |