Hey guys! Is there a way to get all available name...
# orm-help
m
Hey guys! Is there a way to get all available names of the generated models as a union type like this?
Copy code
type Models = 'User' | 'Post' | 'Comment'
👀 1
r
@Marvin current workaround would be to either use
Pick
with PrismaClient and select the models or use
Omit
with the ones not needed.