t
tRPC
t
tRPC
tRPC transforms prisma Date to String, invalidating my typescript schema comparison
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
M
mark salsbery
•
2/14/23, 4:45 PM
Dates get transformed to a string using JSON
. You could use a data transformer that can handle Date like superjson
https://trpc.io/docs/data-transformers
Data Transformers | tRPC
You are able to serialize the response data
& input args
. The transformers need to be added both to the server and the client
.