ModelSchema pluralName changing to listPluralName and syncPluralName #944
Labels
datastore
Issues related to the DataStore Category
feature-request
A request for a new feature or an enhancement to an existing API or category.
GraphQL API
Issues related to the API (GraphQL) Category
Describe the bug
Due to CLI changes to how names are pluralized for list query operations, we're working on a backwards compatible fix for existing developers.
Issue: aws-amplify/amplify-cli#8350
Codegen changes: aws-amplify/amplify-codegen#252
iOS changes: aws-amplify/amplify-swift#1451
Android tracking issue: aws-amplify/amplify-android#1521
This work will most likely result in deprecating
pluralName
forsyncPluralName
since we are introducinglistPluralName
for backwards compatability, and it would be confusing to keeppluralName
. This changes how ModelSchemas are created in FlutterBefore
After
Flutter should wait until this change is finalized across iOS/Android and codegen before making this change. Codegen is also planning to stop generating
pluralName
sincesyncPluralName
will be generated. This means the ModelSchema for new developers will be missingpluralName
and requires the dependent libraries to usesyncPluralName
like:I think means that until Flutter makes the change to stop using pluralName, it will rely on the native libraries to continue falling back onto the
pluralName
for the sync query name. Since Flutter hasn't launched support forAmplify.API.query(.list)
then there's no places that generates the list query nameThe text was updated successfully, but these errors were encountered: