How do I type my query data?

I want to send over some data in my query, but i'm unsure what type definition needs to be updated for this, and how to access it on ctx in the serverside I perhaps thought it could be inferred, but maybe not the case
3 Replies
Yoers
YoersOP2y ago
Found some other example projects on tRPC page, but they seem to access it off ctx.req which doesn't exist in t3-app https://github.com/codingwithmanny/trpc-siwe-monorepo/blob/main/packages/trpc/src/router/auth/index.ts
GitHub
trpc-siwe-monorepo/index.ts at main · codingwithmanny/trpc-siwe-mon...
Contribute to codingwithmanny/trpc-siwe-monorepo development by creating an account on GitHub.
cje
cje2y ago
start a new create-t3-app with trpc and look at how the example query we include works
Yoers
YoersOP2y ago
Huh i'm stupid, missed that hello example, sorry about that thanks for the help
Want results from more Discord servers?
Add your server