wasp-lang / wasp

The fastest way to develop full-stack web apps with React & Node.js.
https://wasp-lang.dev
MIT License
12.78k stars 1.14k forks source link

Fix Full-stack type safety type names #1570

Open sodic opened 8 months ago

sodic commented 8 months ago

1544 bumped the version of Prisma from 4.12 to 4.16.

This change introduced a regression in our full-stack type safety DX. The functionality is still there, but type names are far less ergonomic.

We should do our best to find a way to again show meaningful type names again, and also address other potential changes between Prisma 4.12 and 4.16.

Before

image

After

image

infomiho commented 3 months ago

This will most likely be solved by upgrading to Prisma 5.X according to this fix: https://github.com/prisma/prisma/pull/20319

infomiho commented 1 month ago

One extra thing to consider when we solve this: Prisma started branding their model types so our branded _Entity types are no longer needed.

sodic commented 1 month ago

Also related: generating variations of Prisma entity types: https://discord.com/channels/686873244791210014/1246062324792557638/1246062324792557638