I've installed MongoDB v4.0
for the most amazing feature of it Transaction in Nodejs with mongodb
3.1 as a driver.
When I try to use a transaction session I've faced this error:
MongoError: Transaction numbers are only allowed on a replica set member or mongos.
What's that and how can I get rid of it?