newUserMutation creates new mutation for the User entity.
(c config, op Op, opts ...userOption)
| 14243 | |
| 14244 | // newUserMutation creates new mutation for the User entity. |
| 14245 | func newUserMutation(c config, op Op, opts ...userOption) *UserMutation { |
| 14246 | m := &UserMutation{ |
| 14247 | config: c, |
| 14248 | op: op, |
| 14249 | typ: TypeUser, |
| 14250 | clearedFields: make(map[string]struct{}), |
| 14251 | } |
| 14252 | for _, opt := range opts { |
| 14253 | opt(m) |
| 14254 | } |
| 14255 | return m |
| 14256 | } |
| 14257 | |
| 14258 | // withUserID sets the ID field of the mutation. |
| 14259 | func withUserID(id uuid.UUID) userOption { |
no outgoing calls
no test coverage detected