R
Railwayā€¢13mo 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ā€¢13mo ago
Project ID: 897abfe5-d734-41af-bc55-ee9941db3811
Brody
Brodyā€¢13mo 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
ChaseOPā€¢13mo ago
So I can't use change streams with railway?
Brody
Brodyā€¢13mo ago
correct at least not as easily as you can through atlas
Chase
ChaseOPā€¢13mo ago
are there any plans to support that in the future?
Brody
Brodyā€¢13mo ago
im not sure
Nacho CodoƱer
Nacho CodoƱerā€¢13mo 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