Is there a recommended solution on how to enable mongoDB "change streams" ? #496
-
MongoDB has a feature called "change streams". However, this feature is only available if there is a "replica set". The replica set in turn is NOT enabled by default for single instance MongoDBs. You can enable the replica set with de.flapdoodle.embed.mongo. But it seemes a little bit cumbersome though. Is there any recommendation on how to use this with de.flapdoodle.embed.mongo ? what we do is this:
plus :
immediately especially the need for this admin - command above turned out to be somehow problematic and lead to unstable test until we wraped it part of the test code in some Is there any better way ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
@bodote i will have a look at this.. do you have any error message for the "unstable" case? |
Beta Was this translation helpful? Give feedback.
-
@bodote i will create an issue from that.. |
Beta Was this translation helpful? Give feedback.
-
@bodote .. i close this. Reopen if needed.. |
Beta Was this translation helpful? Give feedback.
@bodote i will create an issue from that..