epicmau5timeE
tRPC3y ago
1 reply
epicmau5time

Superjson "undefined"

When returning a list from the db with a ton of potential undefined fields, superjson just crams a ton of undefined's in meta:

Actual data: 1711 lines,
Data + Meta: 3028 lines.

Is there a way to prevent superjson from sending "undefined" meta fields or a middleware that runs after the fact to remove them?

Or is the solution to not use superjson?
230450921-b0519882-8fab-41d2-9590-a7d73b7dfef0.png
Was this page helpful?