# NEST C# Client - Bulk Partial update of a Nested List by condition

**URL:** https://discuss.elastic.co/t/nest-c-client-bulk-partial-update-of-a-nested-list-by-condition/309733
**Category:** Elasticsearch
**Tags:** language-clients
**Created:** [July 15, 2022, 12:17pm UTC](https://discuss.elastic.co/t/nest-c-client-bulk-partial-update-of-a-nested-list-by-condition/309733 "2022-07-15T12:17:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![krishnapss](https://avatars.discourse-cdn.com/v4/letter/k/43a26b/32.png) [@krishnapss](https://discuss.elastic.co/u/krishnapss)
#### Post date: [July 15, 2022, 12:17pm UTC](https://discuss.elastic.co/t/nest-c-client-bulk-partial-update-of-a-nested-list-by-condition/309733/1 "2022-07-15T12:17:28Z")

</div>

Hi,  
I have an index which has nested list object. I need to only update certain values based on a condition. List of history with dates and values I need to update only values matching with dates.  
In the below example  
**I only want to update historydate 2020-02-01 value not other historydates values in history in NEST C# Client.**  
I couldn't find NEST documentation anywhere. Could someone please help me.  
**Example data**

```auto

[
  {
    "id": 1,
    "description": "market 1",
    "salesprice": 10.9,
    "cost": 7.95957,
    "history": [
      {
        "historydate": "2020-01-01",
        "quantity": 1
      },
      {
        "historydate": "2020-02-01",
        "quantity": 2
      }
    ]
  },
  {
    "id": 2,
    "description": "market 2",
    "salesprice": 12,
    "cost": 12,
    "history": [
      {
        "historydate": "2020-01-01",
        "quantity": 1
      },
      {
        "historydate": "2020-02-01",
        "quantity": 2
      }
    ]
  },
  {
    "id": 3,
    "description": "market3",
    "salesprice": 15,
    "cost": 15,
    "history": [
      {
        "historydate": "2020-01-01",
        "quantity": 10
      },
      {
        "historydate": "2020-02-01",
        "quantity": 20
      },
      {
        "historydate": "2020-03-01",
        "quantity": 30
      }
    ]
  }
]  
  

```

Thank you

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 12, 2022, 12:18pm UTC](https://discuss.elastic.co/t/nest-c-client-bulk-partial-update-of-a-nested-list-by-condition/309733/2 "2022-08-12T12:18:22Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
