Generating GraphQL code, customType is not included in Query.List #870
Labels
bug
Something isn't working
Gen 2
transferred
Issue has been transferred from another Amplify repository
Environment information
Describe the bug
Overview
The Query.List generated by the generate graphql-client-code command doesn't seem to include customType.
Note that while the customType is not present in the generated GraphQL code,
the schema registered in AppSync includes customType.
Therefore, manually adding the customType attribute to the generated GraphQL code allows for successful retrieval of customType,
but we want this to be generated automatically.
Please let me know if there are any settings that can solve this problem.
Reproduction steps
Step
1.Execute the sandbox and reflect this schema in data/resource.ts.
will be generated.
2.Using graphql-client-code, generate GraphQL code from the SandBox's StackName.
3.When checking queries.ts, it becomes apparent that the attachment attribute is missing in two out of the three Queries that retrieve lists:
Query.getTest: attachment exists
Query.listTests: attachment does not exist
Query.listTestBySome_id: attachment does not exist
Query.customListTest: attachment exists
The text was updated successfully, but these errors were encountered: