func (tu *TodoUpdate) SetNillableCategoryID(id *uuid.UUID) *TodoUpdate {
	if id != nil {
		tu = tu.SetCategoryID(*id)
	}
	return tu
}
SetNillableCategoryID sets the "category" edge to the Category entity by ID if the given value is not nil.
package ent
import (
	"context"
	"fmt"
	"entgo.io/contrib/entgql/internal/todouuid/ent/category"
	"entgo.io/contrib/entgql/internal/todouuid/ent/predicate"
	"entgo.io/contrib/entgql/internal/todouuid/ent/todo"
	"entgo.io/contrib/entgql/internal/todouuid/ent/verysecret"
	"entgo.io/ent/dialect/sql"
	"entgo.io/ent/dialect/sql/sqlgraph"
	"entgo.io/ent/schema/field"
	"github.com/google/uuid"
)
type TodoUpdate struct {
	config
	hooks    []Hook
	mutation *TodoMutation
}
func (tu *TodoUpdate) Where(ps ...predicate.Todo) *TodoUpdate {
	tu.mutation.Where(ps...)
	return tu
}
func (tu *TodoUpdate) SetStatus(t todo.Status) *TodoUpdate {
	tu.mutation.SetStatus(t)
	return tu
}
func (tu *TodoUpdate) SetPriority(i int) *TodoUpdate {
	tu.mutation.ResetPriority()
	tu.mutation.SetPriority(i)
	return tu
}
func (tu *TodoUpdate) SetNillablePriority(i *int) *TodoUpdate {
	if i != nil {
		tu.SetPriority(*i)
	}
	return tu
}
func (tu *TodoUpdate) AddPriority(i int) *TodoUpdate {
	tu.mutation.AddPriority(i)
	return tu
}
func (tu *TodoUpdate) SetText(s string) *TodoUpdate {
	tu.mutation.SetText(s)
	return tu
}
func (tu *TodoUpdate) SetBlob(b []byte) *TodoUpdate {
	tu.mutation.SetBlob(b)
	return tu
}
func (tu *TodoUpdate) ClearBlob() *TodoUpdate {
	tu.mutation.ClearBlob()
	return tu
}
func (tu *TodoUpdate) SetParentID(id uuid.UUID) *TodoUpdate {
	tu.mutation.SetParentID(id)
	return tu
}
func (tu *TodoUpdate) SetNillableParentID(id *uuid.UUID) *TodoUpdate {
	if id != nil {
		tu = tu.SetParentID(*id)
	}
	return tu
}
func (tu *TodoUpdate) SetParent(t *Todo) *TodoUpdate {
	return tu.SetParentID(t.ID)
}
func (tu *TodoUpdate) AddChildIDs(ids ...uuid.UUID) *TodoUpdate {
	tu.mutation.AddChildIDs(ids...)
	return tu
}
func (tu *TodoUpdate) AddChildren(t ...*Todo) *TodoUpdate {
	ids := make([]uuid.UUID, len(t))
	for i := range t {
		ids[i] = t[i].ID
	}
	return tu.AddChildIDs(ids...)
}
func (tu *TodoUpdate) SetCategoryID(id uuid.UUID) *TodoUpdate {
	tu.mutation.SetCategoryID(id)
	return tu
}