I'm trying to use a union in my GraphQL schema, however the codegen just outputs errors. Is it a bug or does Amplify not support it?
union EventUnion = Concert | Festival | Conference
type debuggingCodegen @model {
id: ID!
events: [Conference] ## <-- Works
eventUn: [EventUnion] ## <-- Does NOT work
}
Error:
Unknown type "EventUnionInput". Did you mean "EventUnion", "LocationInput", "VenueInput", or "PersonInput"?