-
Notifications
You must be signed in to change notification settings - Fork 247
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
Getting 'Error: Invalid argument' when querying data with predicate containing enum. #722
Comments
From the error message, it looks like the data is being sent from native side to flutter side contains data format other than json. Which platform did you produce this error on please? @EmmanuelOgbewe |
Error produced on IOS. @HuiSF |
Thanks @EmmanuelOgbewe ! This issue is reproducible on my end, I will investigate and get back to you. |
This issue is caused by the method |
Thank you! @HuiSF |
Hi @EmmanuelOgbewe the fix for this issue has been release along with version |
@HuiSF Thank you!! Most definitely will. |
Describe the bug
I have a schema that contains an enum. When querying this data and providing an enum as a predicate I receive an error saying Invalid argument.
Expected behavior
The enum provided as a predicate matches the enum type used in the schema. I do not expect to get the error.
Screenshots
ActivityNotification model contains enum NotificationType.
Querying for recipient notifications matching the type NotificationType.FriendRequest
Error received is
Invalid argument: Instance of 'NotificationType'
Platform
Amplify Flutter current supports iOS and Android. This issue is reproducible in (check all that apply):
[] Android
[X] iOS
Output of
flutter doctor -v
The text was updated successfully, but these errors were encountered: