Luis Rudge
12/09/2021, 2:24 AM✗ npx ts-node prisma/seed.ts
PrismaClientUnknownRequestError:
Invalid `prisma.user.upsert()` invocation:
Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: RawError { code: "unknown", message: "Command failed (OperationNotSupportedInTransaction): Command insert failed : can not create collection in a multi-document transaction)" } })
at cb (/Users/luisrudge/code/cinereview/node_modules/@prisma/client/runtime/index.js:38687:17)
at async main (/Users/luisrudge/code/cinereview/prisma/seed.ts:5:16) {
clientVersion: '3.6.0'
}
Nicolas Saudrais
12/13/2021, 3:13 PMnpx prisma db push
before running my script, which created the collections in my brand new db, therefore allowing mongo transactions to be executed without the cannot create collection issue.
🙂 Hopefully this will help! Cheers