I'm pretty sure I found a bug, but please correct ...
# orm-help
k
I'm pretty sure I found a bug, but please correct me if I'm wrong. All enum fields return
null
unless I override the resolver for the field with a custom string...
I can see the value in the DB
but for some reason the
ctx.db.entity({id})
call doesn't return the enums
I guess switching to
1.18.0-beta.12
is the only way to get the fix
d
Yes, this was a bug fixed in beta. Till this is released in stable, you can use
$fragment
API to query an enum. https://www.prisma.io/docs/prisma-client/basic-data-access/reading-data-TYPESCRIPT-rsc3/#using-fragments-for-fine-grained-data-access