From c6e65664623f9dc77f2c08ac81bcf69bbcc5ad42 Mon Sep 17 00:00:00 2001 From: Philly Cai Date: Tue, 5 May 2026 17:39:48 +0800 Subject: [PATCH] fix(docs): refer wrong raw query methods in ORM > Using Raw SQL > TypeSQL --- .../content/docs/orm/prisma-client/using-raw-sql/typedsql.mdx | 2 +- .../docs/orm/v6/prisma-client/using-raw-sql/typedsql.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/docs/content/docs/orm/prisma-client/using-raw-sql/typedsql.mdx b/apps/docs/content/docs/orm/prisma-client/using-raw-sql/typedsql.mdx index f31b225264..2fe2aa0bf3 100644 --- a/apps/docs/content/docs/orm/prisma-client/using-raw-sql/typedsql.mdx +++ b/apps/docs/content/docs/orm/prisma-client/using-raw-sql/typedsql.mdx @@ -242,7 +242,7 @@ TypedSQL requires an active database connection to function properly. This means ### Dynamic SQL Queries with Dynamic Columns -TypedSQL does not natively support constructing SQL queries with dynamically added columns. When you need to create a query where the columns are determined at runtime, you must use the `$queryRaw` and `$executeRaw` methods. These methods allow for the execution of raw SQL, which can include dynamic column selections. +TypedSQL does not natively support constructing SQL queries with dynamically added columns. When you need to create a query where the columns are determined at runtime, you must use the `$queryRawUnsafe` and `$executeRawUnsafe` methods. These methods allow for the execution of raw SQL, which can include dynamic column selections. **Example of a query using dynamic column selection:** diff --git a/apps/docs/content/docs/orm/v6/prisma-client/using-raw-sql/typedsql.mdx b/apps/docs/content/docs/orm/v6/prisma-client/using-raw-sql/typedsql.mdx index 16eaa705d5..39ff178e4f 100644 --- a/apps/docs/content/docs/orm/v6/prisma-client/using-raw-sql/typedsql.mdx +++ b/apps/docs/content/docs/orm/v6/prisma-client/using-raw-sql/typedsql.mdx @@ -245,7 +245,7 @@ TypedSQL requires an active database connection to function properly. This means ### Dynamic SQL Queries with Dynamic Columns -TypedSQL does not natively support constructing SQL queries with dynamically added columns. When you need to create a query where the columns are determined at runtime, you must use the `$queryRaw` and `$executeRaw` methods. These methods allow for the execution of raw SQL, which can include dynamic column selections. +TypedSQL does not natively support constructing SQL queries with dynamically added columns. When you need to create a query where the columns are determined at runtime, you must use the `$queryRawUnsafe` and `$executeRawUnsafe` methods. These methods allow for the execution of raw SQL, which can include dynamic column selections. **Example of a query using dynamic column selection:**