给出以下JSON结构:
"mobileCredentials": [
{
"name": "some name"
}
]
我想在名为“ description”的对象中添加一个字段,使其类似于:
"mobileCredentials": [
{
"name": "some name",
"description": "new value"
}
]
我使用选择器创建了SetUpdateOperation:
new SetUpdateOperation($"mobileCredentials[0].description", "new value")
运行批量执行时,不是将其添加到该索引中的对象,而是将其作为单独的属性添加到数组下方:
"mobileCredentials": [
{
"name": "some name"
}
],
"mobileCredentials[0]": {
"description": "new value"
}
我需要能够专门添加到数组中的某个索引。我做错了还是这是一个错误?我没有为此找到文档/示例。
我打开的Github问题链接尚未收到任何回复:https://github.com/Azure/azure-cosmosdb-bulkexecutor-dotnet-getting-started/issues/40