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
We are using enums in our graphql schema in Amplify/AppSync.
We are confused as to what Amplify enforces and how to use the enums. Simply saving the string values works fine but we'd really like to limit available options to enums to add integrity to the code.
What is the best way to save an enum using a mutator and to compare queried values using the enum. The generated /src/graphql files don't seem to expose the enum values.
The text was updated successfully, but these errors were encountered:
Is there an update on this? Haven't got round to using my enums on the client side but I just checked my generated TypeScript definitions and they seem to be there:
exportenumPlatform{IOS="IOS",ANDROID="ANDROID",}
Has this been implemented and the issue just not closed, or is there still an issue with using enums that I haven't yet encountered?
We are using enums in our graphql schema in Amplify/AppSync.
We are confused as to what Amplify enforces and how to use the enums. Simply saving the string values works fine but we'd really like to limit available options to enums to add integrity to the code.
What is the best way to save an enum using a mutator and to compare queried values using the enum. The generated /src/graphql files don't seem to expose the enum values.
The text was updated successfully, but these errors were encountered: