# NEST 7.17. Bulk-Update Partial Document changes JObject $type

**URL:** https://discuss.elastic.co/t/nest-7-17-bulk-update-partial-document-changes-jobject-type/300164
**Category:** Elasticsearch
**Tags:** language-clients
**Created:** [March 21, 2022, 7:25am UTC](https://discuss.elastic.co/t/nest-7-17-bulk-update-partial-document-changes-jobject-type/300164 "2022-03-21T07:25:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![neox2811](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neox2811/32/103284_2.png) [@neox2811](https://discuss.elastic.co/u/neox2811)
#### Post date: [March 21, 2022, 7:25am UTC](https://discuss.elastic.co/t/nest-7-17-bulk-update-partial-document-changes-jobject-type/300164/1 "2022-03-21T07:25:10Z")

</div>

Hi,

I want to update existing objects with the Code provided in this topic: [Bulk Partial Update using Nest - #2 by Erkan\_Aslanel](https://discuss.elastic.co/t/bulk-partial-update-using-nest/29124/2)

But atfer the update the $type of my entity has changes to the type of the partial update property. Is that expected behavior?

Before Update:

```auto
Query: GET my-index/_doc/1
"$type" : "VendorProductSearchModel",

```

After Update:

```auto
Query: GET my-index/_doc/1
"$type" : "PartialVendorProductStoreListUpdate",

```

Now, when I try to read the document I cannot deserialize it into my Model (VendorProductSearchModel), because the type was changes to PartialVendorProductStoreListUpdate.

What is the point of the two type-arguments in the update method? Is there anything I'm missing?

---

<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: [April 18, 2022, 7:25am UTC](https://discuss.elastic.co/t/nest-7-17-bulk-update-partial-document-changes-jobject-type/300164/2 "2022-04-18T07:25:13Z")

</div>

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