tRPCttRPC
Powered by
epicmau5timeE
tRPC•3y 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
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

SuperJson ESModule error
BillyBobBBillyBob / ❓-help
3y ago
Migrating to use Superjson
MayhulMMayhul / ❓-help
14mo ago