Amplify.API.query with Request .list() and .paginatedList() falis with FieldUndefined and not using pluralName of the table from generated Table+Schema.swift #1419
Labels
api
Issues related to the API category
bug
Something isn't working
pending-release
Code has been merged but pending release Code has been merged but pending release
Describe the bug
When trying to list a full table with Amplify.API and the table has a name that is a plural, the generated code in Tablename+Schema.swift recognizes that the plural name is the same as the table and declares it properly:
Example, tablename = "Wishes", then at generated code Wishes+Schema.swift you see:
But when using IOS SDK and executing an Amplify.API.query call with request .list() or .paginatedList() it fails with this error:
Steps To Reproduce
Expected behavior
Working properly and using pluralName var.
Amplify Framework Version
1.12.1
Amplify Categories
API
Dependency manager
Cocoapods
Swift version
5.0
CLI version
5.5.0
Xcode version
12.5
Relevant log output
Is this a regression? (i.e. was this working before a version upgrade)
No
Device
IPoneSE and Simulator
iOS Version
IOS 13.0
Specific to simulators
No response
Additional context
The text was updated successfully, but these errors were encountered: