Is the new MongoDB support not available for stand...
# orm-help
m
Is the new MongoDB support not available for standalone mongo instances?
Copy code
Error:
Invalid `prisma.model.deleteMany()` invocation:


  Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: RawError { code: "unknown", message: "Command failed (IllegalOperation): This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.)" } })
my prisma file
Copy code
datasource db {
  provider = "mongodb"
  url      = "<mongodb://localhost/prisma?retryWrites=false>"
}

generator client {
  provider = "prisma-client-js"
  previewFeatures = ["mongoDb"]
}

model Model {
  id  String  @id @default(dbgenerated()) @map("_id") @db.ObjectId
  username String
  ready Boolean
  tags  String[]
  priority Int
}
j
Yep, unfortunately transaction support (which we need) needs a cluster deployment (Even if n=1) for MongoDB somehow.
m
That's a limitation we hope to fix soon. In the meantime, the easiest way to get started is to setup a free Atlas instance or setup a local n=1 replicaset using this guide
👍 1