-
Description:Hello, I am trying to run unit test and test including inserting and fetch data with mongodb. When I run test I am facing "Transaction numbers are only allowed on a replica set member or mongos". When I googling it, I can see "use DatabaseTransactions;" is problem. How can I fix that? I am using macos. |
Beta Was this translation helpful? Give feedback.
Answered by
GromNaN
Feb 21, 2024
Replies: 1 comment
-
By design, MongoDB transactions require a replica set. Possible solutions:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ozanuzer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By design, MongoDB transactions require a replica set.
Possible solutions: