Aid*_*son 3 azure azure-cosmosdb
我试图使用REST API从DocumentDB获取Document.我正在使用分区集合,因此需要添加"x-ms-documentdb-partitionkey"标头.如果我添加这个,我得到"分区密钥abc无效".我无法在文档中找到任何希望密钥具有特定格式的文档,但只提供预期的字符串值不起作用.有谁知道预期的格式?
Ara*_* R. 10
必须将分区键指定为数组(使用单个元素).例如:
x-ms-documentdb-partitionkey: [ "abc" ]
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5230 次 |
| 最近记录: |