diff --git a/content/200-orm/200-prisma-client/150-using-raw-sql/100-typedsql.mdx b/content/200-orm/200-prisma-client/150-using-raw-sql/100-typedsql.mdx index 16ce20e189..b2e27a45ac 100644 --- a/content/200-orm/200-prisma-client/150-using-raw-sql/100-typedsql.mdx +++ b/content/200-orm/200-prisma-client/150-using-raw-sql/100-typedsql.mdx @@ -116,7 +116,7 @@ To pass arguments to your TypedSQL queries, you can use parameterized queries. T 1. When using the generated function in your TypeScript code, pass the arguments as additional parameters to `$queryRawTyped`: - ```typescript + ```typescript title="/src/index.ts" import { PrismaClient } from '@prisma/client' import { getUsersByAge } from '@prisma/client/sql' @@ -140,7 +140,7 @@ FROM users WHERE id = ANY($1) ``` -```typescript +```typescript title="/src/index.ts" import { PrismaClient } from '@prisma/client' import { getUsersByIds } from '@prisma/client/sql' @@ -221,4 +221,4 @@ In this example, the columns to be selected are defined dynamically and included ## Acknowledgements -This feature was heavily inspired by [PgTyped](https://github.com/adelsz/pgtyped) and [SQLx](https://github.com/launchbadge/sqlx). Additionally, SQLite parsing is handled by SQLx. \ No newline at end of file +This feature was heavily inspired by [PgTyped](https://github.com/adelsz/pgtyped) and [SQLx](https://github.com/launchbadge/sqlx). Additionally, SQLite parsing is handled by SQLx.