Tomba
Tomba
TTCTheo's Typesafe Cult
Created by Tomba on 6/14/2023 in #questions
tRPC query with HTTP POST
I'm writing tRPC queries with relatively large amounts of data in the payload (query string), which is (in some cases) exceeding the browser's limit for HTTP GET request length. Is it possible to configure tRPC to use HTTP POST for queries (e.g. similar to how GraphQL works)? (I see these are queries rather than mutations as i am not changing anything on the server - and I prefer the declarative syntax of useQuery vs useMutation).
1 replies