No "query"-procedure on path "auth.getProfile"
Type '[]' has no properties in common with type 'MutateOptions<{ id: string....
Strange error when testing with Auth.js v5
next-auth
version 5 beta for authentication and tRPC
for server logic. I have followed the setup documentation for both next-auth
and tRPC
.
Setup Overview...tRPC failed on beehiiv.fetchBeehiivPosts: Invalid state: Controller is already closed
Is there a way to configure a trpc router to require an output() schema to be specified?
Errors not caught in procedures
@solidjs/start
. Most Solid Start apps use the fetchRequestHandler
. It seems that the behavior changed recently in that errors thrown inside procedures no longer get caught and will crash server.
Environment:
- node 20.3.1
- pnpm (I have tried on npm as well)...silent failure on client query?
selectedSession
updates in the context...Auth0 + fastify + tRPC
Getting the type of context
Is it possible to perform attribute-based authorization after the .query?
getStudentGradeById,
that accepts the gradeId
. I want to return the grade only if the student owns it.
the current code is:
```
protectecProcedure...How is inner context persistent if we call 'createContext' for every batch?
createContext
is called for every request, I fail to see how calling createInnerContext
inside of createContext
provides persistence?
Docs that I read: https://trpc.io/docs/server/context#inner-and-outer-context...does anyone know how put vs post calls map to the trpc procedures provided? (query vs mutation)
Next.js. Migrating to turbopack casues context error
``
react-dom.development.js:20662 Uncaught Error: Unable to retrieve application context. Did you forget to wrap your App inside
withTRPC` HoC?
at updateDehydratedSuspenseComponent (react-dom.development.js:20662:17)...how to proxy a router
extensionRouter
to proxy the apiRouter
, in such a way that a query() from the api AppRouter
would be available natively on the extensionRouter
...Is there a way to pass parameters to procedure on call?
Complex type inference on router outputs?
Where to put clean up code?
createContext
that I must explicitly close per-request.
But I cannot find any good spots in the TRPC lifecycle to make that call.
I tried just running it in a middleware, but seemingly that is invoked on each query in a batch independently, whereas I need it to be called once all queries have finished.
FWIW: I am using create-t3-app with @vercel/postgres and createClient
.
...Trigger lambda configured with trpc using other events
useInfiniteQuery does not exist on appRouter t3-Stack Prisma
Property 'useInfiniteQuery' does not exist on type '{ query: Resolver<BuildProcedure<"query", { _config: RootConfig<{ ctx: { headers: Headers; db: PrismaClient<{ log: ("query" | "warn" | "error")[]; }, never, DefaultArgs>; session: Session | null; }; meta: object; errorShape: { ...; }; transformer: typeof SuperJSON; }>; ... 5 more ...; _output_out: unique symbol; }
and I can't find anything about it.
...