【发布时间】:2017-07-24 13:23:33
【问题描述】:
我正在尝试从 Azure 函数中将以下文档写入 DocumentDb:
dynamic doc = new {
customer = "mycust",
version = "version2",
document = JObject.Parse("{\"prop1\": \"Some text.\"}")
}
await
_client.CreateDocumentAsync(UriFactory.CreateDocumentCollectionUri("db", "coll"),doc);
当保存到 documentdb 时,我得到:
{
"customer": "mycust",
"version": "version2",
"document": {
"prop1": []
},
"id": "93ccb6d6-8829-4179-beba-606078f63dea"
}
“某些文字”丢失。在调试器中它被正确解析。
【问题讨论】:
标签: azure azure-functions azure-cosmosdb