AWS Amplify Data Modeling - is there an option for enumerations?

0

Are enumerations available in AWS Amplify Studio data modeling? Below is a simplified example of something I am trying to do.

enum Example {
     optionA(char)
     optionB(AnotherEnum)
}

enum AnotherEnum {
...

My workaround at the moment is to make the Example from above a custom type that contains optional fields pointing to a String or an enum AnotherEnum. It seems to be working, so it is not a critical issue, but curious to know any workarounds.

gefragt vor einem Jahr82 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen