newGroupMutation creates new mutation for the Group entity.
(c config, op Op, opts ...groupOption)
| 3923 | |
| 3924 | // newGroupMutation creates new mutation for the Group entity. |
| 3925 | func newGroupMutation(c config, op Op, opts ...groupOption) *GroupMutation { |
| 3926 | m := &GroupMutation{ |
| 3927 | config: c, |
| 3928 | op: op, |
| 3929 | typ: TypeGroup, |
| 3930 | clearedFields: make(map[string]struct{}), |
| 3931 | } |
| 3932 | for _, opt := range opts { |
| 3933 | opt(m) |
| 3934 | } |
| 3935 | return m |
| 3936 | } |
| 3937 | |
| 3938 | // withGroupID sets the ID field of the mutation. |
| 3939 | func withGroupID(id uuid.UUID) groupOption { |
no outgoing calls
no test coverage detected