-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
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
Cannot update optional fields to Null to remove them. #2562
Comments
is this because |
tl;dr: You need to give the owner delete permissions on the field while continuing to restrict delete on the model. See #2487 (comment) for longer discussion. |
Thanks @palpatim, this was a customer from aws-amplify/amplify-swift#3677 @dan-codes1 let us know if you have anymore questions |
I understand the issue now. Thanks @lawmicha |
Thank you for confirming @dan-codes1. We are closing the issue. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Amplify CLI version 12.10.3
Schema
Semd
createUser2
request, with the user pool user signed in ("michael" user)Response
Let's say now I want to remove the value set for
optionalName
. Perform an update on the user withoptionalName
set to null.Response
The issue is that I cannot update the user to remove an optional string value, whether it was originally set to something or not.
Originally posted by @lawmicha in aws-amplify/amplify-swift#3677 (comment)
The text was updated successfully, but these errors were encountered: