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
I recently switched a string field which was behaving as an enum to an actual enum type (hence why there are spaces, as I didn't change the value stored).
/** ApplicationStatus is enum for the field status */exportenumApplicationStatus{Account='Account',In='In',Created='created',Progress='progress'}
It appears that the space separation is leading to 4 values of the enum when there should be 2. From what I can tell, the enum ApplicationStatus @goModel is wrong (in that it shouldn't have spaces).
The issue is present in the latest release.
I have searched the issues of this repository and believe that this is not a duplicate.
My Environment 🌎
Tech
Version
Go
1.22.?
Ent
0.13.1
Database
Postgres
The text was updated successfully, but these errors were encountered:
I recently switched a string field which was behaving as an enum to an actual enum type (hence why there are spaces, as I didn't change the value stored).
This results in the
ent.graphql
contentwhen I regenerated my GraphQL schema types on the frontend (using https://github.com/dotansimha/graphql-code-generator), I saw this change
It appears that the space separation is leading to 4 values of the enum when there should be 2. From what I can tell, the
enum ApplicationStatus @goModel
is wrong (in that it shouldn't have spaces).My Environment 🌎
The text was updated successfully, but these errors were encountered: