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
Given the schema below, filtering on an enum computed property (.category of type DatasetCategory in my case) gives error :
InvalidValueError: invalid input value for enum 'datasets::DatasetCategory': "BaseObject"
Example query that fails :
with opts :=<json>to_json('{}'),
# with opts := <json>to_json('{"category": "Site"}') # providing a value gives the same error
category :=<datasets::DatasetCategory>json_get(opts, 'category')
select datasets::Dataset { ** }
filter .category = (category ?? .category)
However select queries without filtering on .category works as expected in EdgeDB UI, and the field type is correctly assigned to a DatasetCategory enum element.
Given the schema below, filtering on an enum computed property (
.category
of typeDatasetCategory
in my case) gives error :Example query that fails :
However select queries without filtering on
.category
works as expected in EdgeDB UI, and the field type is correctly assigned to aDatasetCategory
enum element.Schema:
}
The text was updated successfully, but these errors were encountered: