Closed
Description
Describe the bug
Im trying to implement AppSync API and it doesn't update optional Values, when updating on the client app side.
To Reproduce
Steps to reproduce the behavior:
- Create a DataModel with optional fields
- Create on your app an item of this model with any optional key filled with value 'nil'
- Now we can see in our Table that this key is from type 'NULL' and his value is true.
- Now update on your app this key with the value it should be, when it is not nil. E.g. string.
- The Xcode console will show that the operation was successfull and the item was updated. But in the success data you can see, that this value wasn't updated
- Refresh the table and you will see, that nothing happened. The key is still from type 'NULL' and set to true
Expected behavior
Update the key with its given new value
Environment(please complete the following information):
- Dependency Manager: [ Cocoapods]
- Swift Version : [ 5.3]
Device Information (please complete the following information):
- Device: [Simulator]
- iOS Version: [iOS 14]