DEV Community

Discussion on: Querying MongoDB with Prisma and Railway

Collapse
 
gabogomezt profile image
Gabriel

This post helped me out, thanks! But now I'm getting a new error that says the following
Prisma needs to perform transactions, which requires your MongoDB server to be run as a replica set. pris.ly/d/mongodb-replica-set

Is this happening to anyone else?

Collapse
 
ajcwebdev profile image
ajcwebdev

Hey Gabriel! I haven't run through this example in a while, however @ruheni or @sabinthedev might be able to help.

Collapse
 
ruheni profile image
Ruheni Alex

Hi Gabriel 👋

To resolve this, you can use MongoDB Atlas with replica set support out of the box. Alternatively, you can also convert your standalone instance to a replica set(Guide).

Feel free to refer to the Replica set configuration page in our docs for further details and reach out if you hit a snag. 🙂