mirror of https://github.com/dapr/docs.git
Cosmos - data must be in json (#691)
* Document data must be in json * reword Co-authored-by: LM <lemai>
This commit is contained in:
parent
f239c9e87e
commit
55ee82f0ef
|
@ -103,6 +103,14 @@ kubectl apply -f cosmos.yaml
|
|||
|
||||
To run locally, create a YAML file described above and provide the path to the `dapr run` command with the flag `--components-path`. See [this](https://github.com/dapr/cli#use-non-default-components-path) or run `dapr run --help` for more information on the path.
|
||||
|
||||
## Data format
|
||||
|
||||
To use the cosmos state store, your data must be sent to Dapr in json-serialized. Having it just json *serializable* will not work.
|
||||
|
||||
If you are using the Dapr SDKs (e.g. https://github.com/dapr/dotnet-sdk) the SDK will serialize your data to json.
|
||||
|
||||
For examples see the curl operations in the [Partition keys](#partition-keys) section.
|
||||
|
||||
## Partition keys
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue