// newGrantMutation creates new mutation for the Grant entity.
newGrantMutation creates new mutation for the Grant entity.
// newGrantMutation creates new mutation for the Grant entity .
func newGrantMutation(c config, op Op, opts ...grantOption) *GrantMutation {
	m := &GrantMutation{
		config:        c,
		op:            op,
		typ:           TypeGrant,
		clearedFields: make(map[string]struct{}),
	}
	for _, opt := range opts {
		opt(m)
	}
	return m
}
func newGrantMutation ( c config , op Op , opts ... grantOption ) * GrantMutation { m := & GrantMutation { config : c , op : op , typ : TypeGrant , clearedFields : make ( map [ string ] struct { } ) , } for _ , opt := range opts { opt ( m ) } return m }
newGrantMutation creates new mutation for the Grant entity.
newGrantMutation creates new mutation for the Grant entity .