Michael
Michael
Explore posts from servers
TtRPC
Created by Michael on 5/25/2023 in #❓-help
Output Response Shape
I'm wondering, is the output response shape locked in, or can we modify it in any way? For example:
{
"result": {
"data": {
"json": {
"count": 1,
"results": [...]
}
}
}
}
{
"result": {
"data": {
"json": {
"count": 1,
"results": [...]
}
}
}
}
I'd prefer it to be in a different format as we are migrating an older API to tRPC, and we want to give existing legacy services that interact with the API non-breaking changes, i.e., such that the json response is structured like:
{
"count": 1,
"results": [...]
}
{
"count": 1,
"results": [...]
}
2 replies