microsoft / microsoft/aspire

MongoDB integration - connectionstring parameters

Open
#7,995 3 comments 0 reactions 0 assignees View on GitHub
area-integrations mongodb
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

I'm trying to use a container image with the integration that has replicaset enabled. As it is a single node replicaset, I need to add a connectionString option of `directConnection=true`. As it is not possible to add additional connectionString options using the integration, it is now unable to complete the healthcheck and provide the desired connection string to the application.

There are many more connectionString options available: https://www.mongodb.com/docs/manual/reference/connection-string-options/

As a workaround I now use AddContainer instead.

### Describe the solution you'd like

Add a way to provide additional connectionString options to the integration

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.