Implementation of bi-directional cursor-based pagination
useInfiniteQuery
and I'm trying to make it bi-directional. I know I need to pass getPreviousPageParam
that returns the second cursor, but I don't see any obvious way to pass the direction information to the procedure. What would be the recommended way to do it?How to ignore `input` validation and just pass in an object with interfaces?
z.object()
paramWhere can I add a query key?
async inside link next handler possible ?
tRPC doesn't support redirect
How to get external key other than INPUT from RESTFUL request?
Cannot read properties of undefined (reading 'createTRPCReact')
application/octet-stream response
application/octet-stream
. (csv/xlsx) Can I handle this with trpc?? Probably I can't pass directly the response from the API throught trpc procedure and read it on client. I was thinking if I could parse response on backend (read it as text) and send text to client and download it? Would that work? Is it some kind of security? One problem could occur if the file would be big I guess??...Discriminated union handle
Hit external APIs ...

Cannot get subscription event to fire
How to organise reusable functions
How to get response type depending on the input params?
how to build tRPC and Prisma with express?
How to infer types from input?
How to infer types of a query
const hello = trpc.hello.useQuery();
I would like to export the type we get on hover(on hello).
...Data Visualisation/Charts
trpc + AWS Lambda (through cdk)
Is it possible to narrow an output schema if the query optionally doesn't return all fields?
filter
that changes the shape of the data to only include those fields (like sql select
), but those records will fail the output schema which contains all of the fields as required. is there a way to construct a .output()
specification that narrows the type, possibly using z.partial() so that these partial "rows" will pass output validation?Fetching different server url than defined in config
/address-middleware
instead of hitting /trpc/....
Can I do that? I dont want to setup separate reactquery provider or something just to call one separate endpoint