newProjectMutation creates new mutation for the Project entity.
(c config, op Op, opts ...projectOption)
| 10895 | |
| 10896 | // newProjectMutation creates new mutation for the Project entity. |
| 10897 | func newProjectMutation(c config, op Op, opts ...projectOption) *ProjectMutation { |
| 10898 | m := &ProjectMutation{ |
| 10899 | config: c, |
| 10900 | op: op, |
| 10901 | typ: TypeProject, |
| 10902 | clearedFields: make(map[string]struct{}), |
| 10903 | } |
| 10904 | for _, opt := range opts { |
| 10905 | opt(m) |
| 10906 | } |
| 10907 | return m |
| 10908 | } |
| 10909 | |
| 10910 | // withProjectID sets the ID field of the mutation. |
| 10911 | func withProjectID(id uuid.UUID) projectOption { |
no outgoing calls
no test coverage detected