# How to read write Decimal128 data type field in mongo using parse?

**URL:** <https://community.parseplatform.org/t/how-to-read-write-decimal128-data-type-field-in-mongo-using-parse/2558>\
**Category:** Cloud Code\
**Tags:** query, mongodb\
**Created:** [March 30, 2022, 6:18pm UTC](https://community.parseplatform.org/t/how-to-read-write-decimal128-data-type-field-in-mongo-using-parse/2558 "2022-03-30T18:18:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeevan-ghule](https://community.parseplatform.org/user_avatar/community.parseplatform.org/jeevan-ghule/32/1113_2.png) [@jeevan-ghule](https://community.parseplatform.org/u/jeevan-ghule)\
**Post date:** [March 30, 2022, 6:18pm UTC](https://community.parseplatform.org/t/how-to-read-write-decimal128-data-type-field-in-mongo-using-parse/2558/1 "2022-03-30T18:18:33Z")

</div>

I have some table fields in NumberDecimal format. When I am going to fetch data through query it gives an error.  
TypeError: Cannot read property ‘type’ of undefined  
at /Users/jeevanghule/Documents/nft-art/git-project/nft-backend-serv/node\_modules/parse-server/lib/Adapters/Storage/Mongo/MongoTransform.js:1477:108

---

<div class="post-metadata">

**Author:** ![davimacedo](https://community.parseplatform.org/user_avatar/community.parseplatform.org/davimacedo/32/316_2.png) [@davimacedo](https://community.parseplatform.org/u/davimacedo)\
**Post date:** [March 30, 2022, 8:09pm UTC](https://community.parseplatform.org/t/how-to-read-write-decimal128-data-type-field-in-mongo-using-parse/2558/2 "2022-03-30T20:09:56Z")

</div>

Did you insert this data using Parse?

---

<div class="post-metadata">

**Author:** ![jeevan-ghule](https://community.parseplatform.org/user_avatar/community.parseplatform.org/jeevan-ghule/32/1113_2.png) [@jeevan-ghule](https://community.parseplatform.org/u/jeevan-ghule)\
**Post date:** [March 31, 2022, 6:59am UTC](https://community.parseplatform.org/t/how-to-read-write-decimal128-data-type-field-in-mongo-using-parse/2558/3 "2022-03-31T06:59:23Z")

</div>

No, We have an existing database and we are now shifting to Parse.

---

<div class="post-metadata">

**Author:** ![davimacedo](https://community.parseplatform.org/user_avatar/community.parseplatform.org/davimacedo/32/316_2.png) [@davimacedo](https://community.parseplatform.org/u/davimacedo)\
**Post date:** [March 31, 2022, 3:08pm UTC](https://community.parseplatform.org/t/how-to-read-write-decimal128-data-type-field-in-mongo-using-parse/2558/4 "2022-03-31T15:08:07Z")

</div>

I’m not sure that Parse Server will be able to handle this existing type of data since it does not implement any field type that converts to Decimal128. You will probably have to transform it to another “Parse field type”.
