I have a question when trying to define types afte...
# orm-help
k
I have a question when trying to define types after receiving data from prisma with includes. I have an authentication table where i am joining 2 other tables (user and authentication_permission). I then map over the data and create my final object, you can see in the first code block it is complaining that authentication_permission and user does not exist on authentication type. In the second code block i found a work around to that, im just wondering if there is a nicer way? a nicer way for me would be to only have to use a single type. I could not find anything in the prisma/client generated code which had something like
Copy code
export type authentication_with_all_includes {
  ...
  user: user,
  authentication_permission: authentication_permission[]
}