We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trpc middleware allows extending the context, in particular Context Extension.
See https://trpc.io/docs/server/middlewares#context-extension
To reproduce, simply;
isAuthenticated
findManyUser
ctx.user
In findManyUser, ctx.user should be typed as a string
ps: Thanks for this awesome job, I come from the graphql world, and really appreciated the graphql-shield.
graphql-shield
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug report
Describe the bug
trpc middleware allows extending the context, in particular Context Extension.
See https://trpc.io/docs/server/middlewares#context-extension
To Reproduce
To reproduce, simply;
isAuthenticated
rule to the official example,findManyUser
).findManyUser
, checkctx.user
. It's still null.Expected behavior
In
findManyUser
,ctx.user
should be typed as a stringps: Thanks for this awesome job, I come from the graphql world, and really appreciated the
graphql-shield
.The text was updated successfully, but these errors were encountered: