-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataStore codegen wrong message for union types #211
Comments
is there a plan to support union types? would it be possible for datastore to ignore the declarations of union types instead of throwing an error? and have part of an API using union types without datastore, and still use datastore for things it supports? |
Bump? Having the same issue here. Added an issue in the codegen repo #143 Would be nice to atleast be able to use the union types even though it's not supported for datastore |
Hey yall 👋 thanks for raising this! I'll transfer to the codegen repo for better assistance |
Ca we please have an update on this? I think this is a pretty necessary part of GraphQL. Data store should seriously support unions. |
There is an update about this topic?? |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
When a union type is defined in the
schema.graphql
, an attempt to generate DataStore models fails with the following message:Amplify CLI Version
4.21.1
To Reproduce
amplify codegen models
Sample schema:
Expected behavior
A clear message stating that union types are not supported in DataStore.
Screenshots
N/A.
Desktop (please complete the following information):
MacOS 10.14.6
12.8.0
Additional context
Reported originally by @lenarmazitov: aws-amplify/amplify-swift#544
The text was updated successfully, but these errors were encountered: