Prisma needs to perform transactions, which requires your MongoDB server to be run as a replica set. #18958
Replies: 5 comments 4 replies
-
Hi @MohsinUddinAbir 👋 Can you please take a look at this closed issue? There are workarounds in there that could help you set up a replica set locally. You can also follow the Mongodb link to set up a replica set from a standalone MongoDB server |
Beta Was this translation helpful? Give feedback.
-
If you're still encountering this: Install prerequisites
Create local replica setCreate docker network for replicate set
Create replica set1. Initiate replicate set
Update /etc/host to include links for mong1, mongo2, mongo3Edit
Check statusYou can run
ConnectConnect through one of the following:
|
Beta Was this translation helpful? Give feedback.
-
Also i am facing same issue- Prisma needs to perform transactions, which requires your MongoDB server to be run as a replica set. https://pris.ly/d/mongodb-replica-set |
Beta Was this translation helpful? Give feedback.
-
Have to use the replica set, too bad |
Beta Was this translation helpful? Give feedback.
-
Bug description
When I try to use the local MongoDB server on Windows it gives me this error: Prisma needs to perform transactions, which requires your MongoDB server to be run as a replica set. Also the link: https://pris.ly/d/mongodb-replica-set does not give me any solution.
Can you develop an option for development with MongoDB using a local server on Windows like Mongoose, it is much more annoying to set up a replica, and we also don't like to use MongoDB Atlas, It also consumes more time.
Environment & setup
Prisma Version
Beta Was this translation helpful? Give feedback.
All reactions