tRPCttRPC
Powered by
meowM
tRPC•3y ago•
4 replies
meow

Enrich the response object for TRPC endpoint

Currently when I hit a trpc endpoint I get something like:

{
   result: {
      data: ...
   }
}
{
   result: {
      data: ...
   }
}


Is there any way to add more metadata, like:

{
   result: {
      data: ...
   }
   meta: {
      time: 10ms,
   }
}
{
   result: {
      data: ...
   }
   meta: {
      time: 10ms,
   }
}
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

Calling a trpc endpoint inside of a trpc endpoint
rustclanRrustclan / ❓-help
4y ago
calling api endpoints from within a trpc api endpoint?
rustclanRrustclan / ❓-help
4y ago
uploading image via trpc endpoint
PeformPPeform / ❓-help
2y ago