Replies: 1 comment
-
It's not possible yet, see #139 👀 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a use case where I want to modify the data that goes into a table. The field that I want to set does not exist in the input type.
I want to set the
user_id
field for a table with the ID of the user that is currently logged it, which exists incontext
.I've tried directly modifying the args.data object, but that doesn't seem to do the trick. This is what I've tried:
My Prisma schema file:
Is there a way to do this without creating a custom resolver? I see myself doing something like this a lot. For example, hashing a password when a user is creating an account and using that value instead of the plain text that the user provides. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions