R
Railwayā€¢12mo ago
Chase

MongoDB Change Streams

I'm trying to use mongo change streams in my project and when I try setting it up with mongoose and NodeJS I get this message:
MongoServerError: The $changeStream stage is only supported on replica sets.
MongoServerError: The $changeStream stage is only supported on replica sets.
When I remove the volume connected to the database and add a replica, I get the same message. Change streams work just fine when I use MongoDB Atlas, but not on railway. project id 897abfe5-d734-41af-bc55-ee9941db3811
7 Replies
Percy
Percyā€¢12mo ago
Project ID: 897abfe5-d734-41af-bc55-ee9941db3811
Brody
Brodyā€¢12mo ago
1. without a volume, data will not persist 2. railways replicas are not the same as a mongo replica set 3. railway does not support mongo replica sets
Chase
Chaseā€¢12mo ago
So I can't use change streams with railway?
Brody
Brodyā€¢12mo ago
correct at least not as easily as you can through atlas
Chase
Chaseā€¢12mo ago
are there any plans to support that in the future?
Brody
Brodyā€¢12mo ago
im not sure
Nacho CodoƱer
Nacho CodoƱerā€¢12mo ago
Here I achieved to have my mongodb replica setup. Check it out for an explanation of the process I did: https://discord.com/channels/713503345364697088/1175311111634026496/1175345555942150214 šŸ˜
Want results from more Discord servers?
Add your server