You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In my schema I want to nest a model into another without using an additional table.
'Amplify codegen models' outputs no errors but does only create empty files for models without @model directive. The generated flutter code for the other models is invalid aswell since some model classes are missing but referenced.
To Reproduce
Steps to reproduce the behavior:
Enter schema:
type Parent @model {
id: ID!
children: [Child]
}
type Child {
id: ID!
content: String
}
Run 'amplify codegen models'
See missing classes
Expected behavior
Proper generation for missing classes
Platform
Amplify Flutter current supports iOS and Android. This issue is reproducible in (check all that apply):
[x] Android
[x] iOS
The text was updated successfully, but these errors were encountered:
Currently this is not supported @dajojo as we do not generate the dart class for non model classes defined in your schema and have no support for them in our code. We will investigate fixing this missing feature and provide more details in the above linked issue #260.
@fjnoyp Thanks for the fast reply!
I would appreciate this feature since it is very important for using a NoSQL database correctly.
Closed for duplication
Describe the bug
In my schema I want to nest a model into another without using an additional table.
'Amplify codegen models' outputs no errors but does only create empty files for models without @model directive. The generated flutter code for the other models is invalid aswell since some model classes are missing but referenced.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Proper generation for missing classes
Platform
Amplify Flutter current supports iOS and Android. This issue is reproducible in (check all that apply):
[x] Android
[x] iOS
The text was updated successfully, but these errors were encountered: