MongoDB prisma

a year ago

When ever i try to connect my mongodb with prisma i does not work :( when i genarate the schema it gave my 0 issues. but when i run my appication and it gives me this error on the img

Here is my connection url format: mongodb://:@[monorail.proxy.rlwy.net:16184/test](monorail.proxy.rlwy.net:16184/test)

0 Replies

a year ago

n/a


a year ago

When i add the ?authSource=admin at the end it allows reading but not writing? Then i get this error:
Prisma needs to perform transactions, which requires your MongoDB server to be run as a replica set. [https://pris.ly/d/mongodb-replica-set](https://pris.ly/d/mongodb-replica-set)


a year ago

mongo Databases on railway are not run as a replica set, meaning you can't use them with prisma from what I've heard


a year ago

Arr alright. Thanks!


10 months ago

not with the default mongo database, you would need to deploy this template into your project -


10 months ago

good choice


10 months ago

I can promise you that the database on railway is not running at localhost


10 months ago

yes of course


10 months ago

but I'm going to lock this thread as it is going out of scope


MongoDB prisma - Railway Help Station