How to narrow type in select from enum?
During select I need to narrow enum type from multiple choices to one choice eg just 'product'
schema
query
result
typ
value is typed as typ: "produkt" | "usluga";
and I need to narrow it to just product
I would be glad for any tip how to accomplish this. Thanks!1 Reply
My attempt was to use
sql
operator like this: but I believe there might be better solution