T
tRPC

z.map() as an input

z.map() as an input

VVengeance12/7/2022
Hi, I have
z.map(z.string(), z.string())
z.map(z.string(), z.string())
as an input, but when I try to pass the map as a query, it refuses to run and I have no clue why. Any ideas? Changed query and frontend to a record instead and suddenly it's working
Ssachin12/8/2022
You need to use superjson to pass a Map over http

Looking for more? Join the community!

T
tRPC

z.map() as an input

Join Server