func (cc *CategoryCreate) AddTodos(t ...*Todo) *CategoryCreate {
	ids := make([]pulid.ID, len(t))
	for i := range t {
		ids[i] = t[i].ID
	}
	return cc.AddTodoIDs(ids...)
}
AddTodos adds the "todos" edges to the Todo entity.
package ent
import (
	"context"
	"errors"
	"fmt"
	"time"
	"entgo.io/contrib/entgql/internal/todo/ent/schema/schematype"
	"entgo.io/contrib/entgql/internal/todopulid/ent/category"
	"entgo.io/contrib/entgql/internal/todopulid/ent/schema/pulid"
	"entgo.io/contrib/entgql/internal/todopulid/ent/todo"
	"entgo.io/ent/dialect/sql/sqlgraph"
	"entgo.io/ent/schema/field"
)
type CategoryCreate struct {
	config
	mutation *CategoryMutation
	hooks    []Hook
}
func (cc *CategoryCreate) SetText(s string) *CategoryCreate {
	cc.mutation.SetText(s)
	return cc
}
func (cc *CategoryCreate) SetStatus(c category.Status) *CategoryCreate {
	cc.mutation.SetStatus(c)
	return cc
}
func (cc *CategoryCreate) SetConfig(sc *schematype.CategoryConfig) *CategoryCreate {
	cc.mutation.SetConfig(sc)
	return cc
}
func (cc *CategoryCreate) SetDuration(t time.Duration) *CategoryCreate {
	cc.mutation.SetDuration(t)
	return cc
}
func (cc *CategoryCreate) SetNillableDuration(t *time.Duration) *CategoryCreate {
	if t != nil {
		cc.SetDuration(*t)
	}
	return cc
}
func (cc *CategoryCreate) SetCount(u uint64) *CategoryCreate {
	cc.mutation.SetCount(u)
	return cc
}
func (cc *CategoryCreate) SetNillableCount(u *uint64) *CategoryCreate {
	if u != nil {
		cc.SetCount(*u)
	}
	return cc
}
func (cc *CategoryCreate) SetID(pu pulid.ID) *CategoryCreate {
	cc.mutation.SetID(pu)
	return cc
}
func (cc *CategoryCreate) SetNillableID(pu *pulid.ID) *CategoryCreate {
	if pu != nil {
		cc.SetID(*pu)
	}
	return cc
}
func (cc *CategoryCreate) AddTodoIDs(ids ...pulid.ID) *CategoryCreate {
	cc.mutation.AddTodoIDs(ids...)
	return cc
}