microsoft / microsoft/aspire.dev

MongoDB Replica set support - needs documentation update

Open
#800 1 comment 1 reaction 2 assignees View on GitHub

@IEvangelist is already working on this.

Since Jun 2, 2026.

  • #1159 by @copilot-swe-agent — closed without merging
Dominant language
MDX
Stars
193
Forks
87
Avg merge
1d 22h
Merged PRs (30d)
73

Description

This PR ([microsoft/aspire#16698](https://github.com/microsoft/aspire/pull/16698)) updates the Aspire MongoDB Builder to add support for building a single node replica set. This will allow applications using transactions or change streams to use MongoDB in Aspire.

The documentation should be updated to explain when this should be used, and how to use it.

The usage itself is simple, when adding a mongo database, add the `.WithReplicaSet()` call to the builder as follows:

```csharp
var mongo = builder.AddMongoDB("mongo")
.WithReplicaSet();
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.