Variable updateNoteFolderSchemaConst
updateNoteFolderSchema: ZodEffects<
ZodObject<
{
name: ZodOptional<ZodString>;
parentId: ZodOptional<ZodNullable<ZodString>>;
},
"strip",
ZodTypeAny,
{ name?: string; parentId?: string
| null },
{ name?: string; parentId?: string | null },
>,
{ name?: string; parentId?: string | null },
{ name?: string; parentId?: string | null },
> = ...
PATCH /note-folders/:idbody — rename and/or reparent.parentId: nullis a MOVE TO ROOT, which is why the refine below tests!== undefinedrather than truthiness:nulland "absent" are different requests here and collapsing them would make root unreachable.