KyselyK
Kysely2y ago
3 replies
tzezar

problem with nested jsonArrayFrom and jsonObjectFrom

Typescript raise error when attempt to reference to relations in nested json helpers is made. Is this syntax error or kysely limitation?

https://kyse.link/SL7ct
Solution
Hey 👋

You can't just use the same eb for all depths. The one you've used doesn't have line nor subline in its query context.

This works:
https://kyse.link/2WHJH
Was this page helpful?