Repository navigation
v0.27.0
@kitcn/resend
Published @kitcn/resend@0.27.0.
kitcn
Minor Changes
-
#395
2c9ffd2Thanks @MikeyZhang75! - ## Breaking changes- Nested
with:now loads every level it is given, up to 10, instead of quietly dropping everything past the third. A config that nests deeper throwsRELATION_DEPTH_EXCEEDEDrather than returning a shorter tree. Deepwith:configs that used to come back truncated now come back complete — and read the rows that completeness costs.
// Before: the fourth level was dropped, with no error const rows = await ctx.orm.query.comments.findMany({ limit: 20, with: { replies: { limit: 10, with: { replies: { limit: 10, with: { author: true } } }, }, }, }); rows[0].replies[0].replies[0].author; // undefined // After: loaded, because it was asked for rows[0].replies[0].replies[0].author; // { id, name }
Patches
- Resolve
with: { _count }at every level of a nestedwith:, including the deepest one returned. A tree can now report how many children it withheld without a second pass that re-reads every node the caller already holds.
- Nested