---
title: "Discussion on \"Fixing MongoDB Transaction Error in Node.js (Windows)\" | Hashnode"
description: "Discussion on \"Fixing MongoDB Transaction Error in Node.js (Windows)\". When working with Mongoose transactions in a Node.js project, you might encounter this error:\nTransaction numbers are only allowed on a replica set member or mongos\n\nThis happens because MongoDB trans"
url: "https://hashnode.com/posts/fixing-mongodb-transaction-error-in-node-js-windows/69ac422686766ac3a6cd65f9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Fixing MongoDB Transaction Error in Node.js (Windows)](https://blog.qubartech.com/fixing-mongodb-transaction-error-in-node-js-windows?utm_source=hashnode&utm_medium=feed)

When working with Mongoose transactions in a Node.js project, you might encounter this error: Transaction numbers are only allowed on a replica set member or mongos This happens because MongoDB trans

Mar 7 · 4 min read · blog.qubartech.com  
Read the article

## Written by

[Rakibul Islam](https://hashnode.com/@rakib587)

@rakib587

  
[View profile](https://hashnode.com/@rakib587)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
