Skip to content

MongoDB Replica set support - needs documentation update #800

@artiomchi

Description

@artiomchi

This PR (microsoft/aspire#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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions