Is there any way to declare enum types on prisma cli without build any app(only using the cli)? I have string fields in postgresql but I would like to know if it's possible to expose these strings as enum values.
h
Harshit
02/14/2019, 3:50 PM
I dont get it. If you have few strings you can surely make a enum out of them
m
Martí Crespí
02/15/2019, 7:11 AM
Yes, but only using the cli? Without build an app with yoga?
h
Harshit
02/15/2019, 7:12 AM
Yes, you can consume
m
Martí Crespí
02/15/2019, 7:19 AM
Do you have an example how "override" a property generated by typescript-client to assign this enum values?