Skip to content

Commit

Permalink
Adding params key in mongo-state component (#2265)
Browse files Browse the repository at this point in the history
* Adding params key in mongo-state component

Signed-off-by: shivam <shivamkm07@gmail.com>

* Adding params description

Signed-off-by: shivam <shivamkm07@gmail.com>

* Update daprdocs/content/en/reference/components-reference/supported-state-stores/setup-mongodb.md

Signed-off-by: shivam <shivamkm07@gmail.com>

Co-authored-by: Mark Fussell <markfussell@gmail.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
  • Loading branch information
3 people committed Mar 23, 2022
1 parent e62bf8f commit 7d5bbd8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ spec:
value: <REPLACE-WITH-READ-CONCERN> # Optional.
- name: operationTimeout
value: <REPLACE-WITH-OPERATION-TIMEOUT> # Optional. default: "5s"
- name: params
value: <REPLACE-WITH-ADDITIONAL-PARAMETERS> # Optional. Example: "?authSource=daprStore&ssl=true"
```

{{% alert title="Warning" color="warning" %}}
Expand Down Expand Up @@ -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<sup>**</sup> | Additional parameters to use | `"?authSource=daprStore&ssl=true"`

> <sup>[*]</sup> The `server` and `host` fields are mutually exclusive. If neither or both are set, Dapr will return an error.
> <sup>[**]</sup> The `params` field accepts a query string that specifies connection specific options as `<name>=<value>` 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" >}}
Expand Down

0 comments on commit 7d5bbd8

Please sign in to comment.