Generated dart client code has a type error #878
Labels
Gen 2
pending-response
pending-triage
Issues that need further discussion to determine
transferred
Issue has been transferred from another Amplify repository
Environment information
Describe the bug
when generating client code for dart, using this command:
npx ampx generate graphql-client-code --format modelgen --model-target dart --out ./lib/models
The generated code consistently has this error:
My theory is its because I haven't declared any models in my data resource as I've used mongo and single table design. This is not the standard way and doesn't follow the documentation but is perfectly valid.
ModelProvider.dart:
Reproduction steps
For more context, here is my
data/resource.ts
:The text was updated successfully, but these errors were encountered: