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.
()
| 7112 | // ID returns the ID value in the mutation. Note that the ID is only available |
| 7113 | // if it was provided to the builder or after it was returned from the database. |
| 7114 | func (m *MembershipMutation) ID() (id uuid.UUID, exists bool) { |
| 7115 | if m.id == nil { |
| 7116 | return |
| 7117 | } |
| 7118 | return *m.id, true |
| 7119 | } |
| 7120 | |
| 7121 | // IDs queries the database and returns the entity ids that match the mutation's predicate. |
| 7122 | // That means, if the mutation is applied within a transaction with an isolation level such |