我正在尝试使用微服务架构构建一个 NestJS Monorepo 服务,其中 PostgreSQL 作为数据库,Prisma 作为 ORM,TypeScript 作为主要语言。但是当我尝试执行 Postgres 查询时,我不断收到以下错误。src/infrastruct/persistence/work.repository.postgres.ts:188:7 - 错误 TS2345:“string”类型的参数不可分配给“TemplateStrings...
It can be difficult to visualize the example with those placeholder function names, so a simple example of how to use this technique is this Prisma data deletion function I wrote for a Twitter clone to first delete tweets and then users:export const clearData = async (prisma) => { const...