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
Describe the bug
The edgedb generator does not generated enum types defined in schema. It treats enum as String and creates fields of classes with String as datatype.
Reproduction
Schema:
module default {
scalar type Status extending enum<'UNSPECIFIED','PENDING','FAILED','PAID'>;
type Locations {
required is_active: bool;
link geo_location: LatLong {
constraint exclusive;
}
required last_activity: datetime;
required payment_status: Status;
}
type LatLong {
required x_coord: float32;
required y_coord: float32;
single link location := .<geo_location[is Locations]
}
}
Query:
select default::Locations {
id,
is_active,
last_activity,
payment_status,
geo_location: {
id,
x_coord,
y_coord
}
order by .x_coord
}
filter .payment_status ?= <Status>$payment_status and .is_active ?= <std::bool>$active and .last_activity <= <std::datetime>$last_activity
order by .last_activity empty last
offset <std::int64>$offset
limit <std::int64>$page_count
Expected behavior
The output of PAYMENT status in data classes generated should have Enum as Data type. Instead, String is generated.
Hi team,
Any update on this ?
Also if possible, do let me know if I can help. I cannot quite understand codec generation. But you can suggest some good head starts.
Describe the bug
The edgedb generator does not generated enum types defined in schema. It treats enum as String and creates fields of classes with String as datatype.
Reproduction
Schema:
Query:
Expected behavior
The output of PAYMENT status in data classes generated should have Enum as Data type. Instead, String is generated.
Generated .dart file for above query:
The text was updated successfully, but these errors were encountered: