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
Is there a way that I can override or add custom logic to the dataFetcher for a field of my entity?
For example, if I have a column "status" that is an integer column, but I'd like the API to respond with the status's corresponding enum value, how could I go about doing that?
@Entity
public class MyEntity {
// other fields omitted
// This will return the integer status, how can I return a corresponding ENUM value instead?
@Column
@GraphQLDescription("The status")
private int status;
}
The text was updated successfully, but these errors were encountered:
Is there a way that I can override or add custom logic to the dataFetcher for a field of my entity?
For example, if I have a column "status" that is an integer column, but I'd like the API to respond with the status's corresponding enum value, how could I go about doing that?
The text was updated successfully, but these errors were encountered: