Cosmos - data must be in json (#691)

* Document data must be in json

* reword

Co-authored-by: LM <lemai>
This commit is contained in:
Leon Mai 2020-07-14 20:09:13 -07:00 committed by GitHub
parent f239c9e87e
commit 55ee82f0ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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