diff --git a/daprdocs/content/en/reference/components-reference/supported-state-stores/setup-mongodb.md b/daprdocs/content/en/reference/components-reference/supported-state-stores/setup-mongodb.md index 5e97b5438..90cbe83ef 100644 --- a/daprdocs/content/en/reference/components-reference/supported-state-stores/setup-mongodb.md +++ b/daprdocs/content/en/reference/components-reference/supported-state-stores/setup-mongodb.md @@ -40,6 +40,8 @@ spec: value: # Optional. - name: operationTimeout value: # Optional. default: "5s" + - name: params + value: # Optional. Example: "?authSource=daprStore&ssl=true" ``` {{% alert title="Warning" color="warning" %}} @@ -67,9 +69,12 @@ If you wish to use MongoDB as an actor store, append the following to the yaml. | writeconcern | N | The write concern to use | `"majority"` | readconcern | N | The read concern to use | `"majority"`, `"local"`,`"available"`, `"linearizable"`, `"snapshot"` | operationTimeout | N | The timeout for the operation. Defaults to `"5s"` | `"5s"` +| params | N** | Additional parameters to use | `"?authSource=daprStore&ssl=true"` > [*] The `server` and `host` fields are mutually exclusive. If neither or both are set, Dapr will return an error. +> [**] The `params` field accepts a query string that specifies connection specific options as `=` pairs, separated by `"&"` and prefixed with `"?"`. e.g. to use "daprStore" db as authentication database and enabling SSL/TLS in connection, specify params as `"?authSource=daprStore&ssl=true"`. See [the mongodb manual](https://docs.mongodb.com/manual/reference/connection-string/#std-label-connections-connection-options) for the list of available options and their use cases. + ## Setup MongoDB {{< tabs "Self-Hosted" "Kubernetes" >}}