diff --git a/examples/typed-sql/README.mdx b/examples/typed-sql/README.mdx index 87269c1d..4333351f 100644 --- a/examples/typed-sql/README.mdx +++ b/examples/typed-sql/README.mdx @@ -1,4 +1,6 @@ # Typed SQL + + This is an example of using Prisma Client's 5.19.0 `prisma.$queryRawTyped` for our search page instead of using zod for type safety. diff --git a/exercises/08.sql/04.solution.order/README.mdx b/exercises/08.sql/04.solution.order/README.mdx index 7946ea92..77b59cec 100644 --- a/exercises/08.sql/04.solution.order/README.mdx +++ b/exercises/08.sql/04.solution.order/README.mdx @@ -9,3 +9,20 @@ back! (I would, but I'm just a 👨‍💼 emoji). `prisma.$queryRaw`. Prisma is pretty powerful by itself and most of the time you don't need to reach for raw SQL statements. But when you do, you'll be glad that you could. + +--- + +## Typed SQL + +An exciting new feature in Prisma 5.19.0 is the `prisma.$queryRawTyped` +function. This allows you to run raw SQL queries and get typed results back +from your database. + +This is a game changer for type safety and developer experience. Check out how +this exercise changes with this new feature here: + + + + + See the diff here +