-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add User id automatically #2639
Comments
Hey @jewells07, thanks for raising this. Can you please try below schema and let us know if meets your usecase?
|
But this can change if I pass a different user ID, right? It is not good for security purposes. |
Can relationships work? I have read that the owner field was made like this:
|
I don't understand why amplify is still using subs from cognito? There is a flag to just use username - I recommend it to use it. |
Nope, it's not working; it saved as the string |
in Gen1:
|
There is a similar thing in Gen 2 (https://docs.amplify.aws/react/build-a-backend/data/customize-authz/configure-custom-identity-and-group-claim/). But I still get confused about how to use it and whether it will work in relationships or not. |
Amplify recommends that you use sub if possible. The functionId issue should be resolved now. See #2307. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the feature you'd like to request
Most of the time, we have the user ID (e.g., blog post's author, etc.). Currently, we have to add it manually, or we need to create mutation handlers for this. It will have many handlers for the same work in the schema.
Describe the solution you'd like
We can have something like eventRequestUser, meaning who is creating the post, the userId will set it automatically.
The text was updated successfully, but these errors were encountered: