t
tRPC
M
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,
}
}
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Calling a trpc endpoint inside of a trpc endpoint
R
rustclan / ❓-help
4y ago
calling api endpoints from within a trpc api endpoint?
R
rustclan / ❓-help
4y ago
uploading image via trpc endpoint
P
Peform / ❓-help
2y ago