# Unable to parse only one collection data

**URL:** <https://community.forestadmin.com/t/unable-to-parse-only-one-collection-data/3796>\
**Category:** Help me!\
**Created:** [November 30, 2021, 9:24am UTC](https://community.forestadmin.com/t/unable-to-parse-only-one-collection-data/3796 "2021-11-30T09:24:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanish](https://avatars.discourse-cdn.com/v4/letter/t/a5b964/32.png) [@tanish](https://community.forestadmin.com/u/tanish)\
**Post date:** [November 30, 2021, 9:24am UTC](https://community.forestadmin.com/t/unable-to-parse-only-one-collection-data/3796/1 "2021-11-30T09:24:40Z")

</div>

Hello everyone!

Need some help from the community. I recently migrated from js to **typescript** and upgraded forest-express-mongoose and since, I am unable to see one of my collections’ data. However, I am able to see data for all my other collections.

I have attached the screenshots below. I would appreciate if anyone could explain the error and how I can fix them.

Find below details about my project.  
Project name: Dibsy  
“forest-express-mongoose”: “^8.4.3”,

 ![Screenshot 2021-11-30 at 12.15.27 PM](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/4/4e9d4595fce227bc975579fb3bb1d6a8930e88d0.png)  
 ![Screenshot 2021-11-30 at 12.17.53 PM](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/e/e14764ff22aa9b23c4c408391280953a2236ea8b.png)

---

<div class="post-metadata">

**Author:** ![anon23361380](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@anon23361380](https://community.forestadmin.com/u/anon23361380)\
**Post date:** [November 30, 2021, 10:55am UTC](https://community.forestadmin.com/t/unable-to-parse-only-one-collection-data/3796/2 "2021-11-30T10:55:26Z")

</div>

Hello @tanish ,

Welcome to our community!

Can you send us the transactions modal please?  
Can you also add a `console.log(field)` in the file `services/filters-parser` on line 214 and send us a screenshot of the output?

---

<div class="post-metadata">

**Author:** ![tanish](https://avatars.discourse-cdn.com/v4/letter/t/a5b964/32.png) [@tanish](https://community.forestadmin.com/u/tanish)\
**Post date:** [November 30, 2021, 11:17am UTC](https://community.forestadmin.com/t/unable-to-parse-only-one-collection-data/3796/3 "2021-11-30T11:17:10Z")

</div>

Bonjour. Ça va @anon23361380 ? thank you for your response. Below are screenshots of my model. Moreover, on server startup, I added a query to findOne() using this model and it is returning appropriate values, so I know the model is intialized properly.

 ![Screenshot 2021-11-30 at 2.08.12 PM](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/a/a47385378c105174fed51e90db7a00ef06d9d4e7.png)  
I also console logged field in the filters-parser but its the same old error in the console, and i did not see anything with the prefix “field”. (see 2nd response)

Let me know if I have made an error.

---

<div class="post-metadata">

**Author:** ![tanish](https://avatars.discourse-cdn.com/v4/letter/t/a5b964/32.png) [@tanish](https://community.forestadmin.com/u/tanish)\
**Post date:** [November 30, 2021, 11:17am UTC](https://community.forestadmin.com/t/unable-to-parse-only-one-collection-data/3796/4 "2021-11-30T11:17:57Z")

</div>

Ammendmend to filter\_parser file

 ![Screenshot 2021-11-30 at 2.09.27 PM](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/0/0014f81bf37d78b48a1c06c3a4af0620f839b5f6.png)

---

<div class="post-metadata">

**Author:** ![anon23361380](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@anon23361380](https://community.forestadmin.com/u/anon23361380)\
**Post date:** [November 30, 2021, 1:18pm UTC](https://community.forestadmin.com/t/unable-to-parse-only-one-collection-data/3796/5 "2021-11-30T13:18:57Z")

</div>

Sorry @tanish we don’t have the same file, so I gave you the wrong line number. Can you please put the `console.log("field: ", field)` on line 206 instead of 214 and send us a screenshot of the output?

---

<div class="post-metadata">

**Author:** ![tanish](https://avatars.discourse-cdn.com/v4/letter/t/a5b964/32.png) [@tanish](https://community.forestadmin.com/u/tanish)\
**Post date:** [November 30, 2021, 2:01pm UTC](https://community.forestadmin.com/t/unable-to-parse-only-one-collection-data/3796/6 "2021-11-30T14:01:53Z")

</div>

@anon23361380

I console logged as per your directions and it seems the error was caused by using enums used as type in the schema. After removing the enums from type, everything is functioning properly. Take a look at the error below.

![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/5/5b59c3cd4bc499e0612c8cd39ddcf5ccef900d05.png)

Moreover, I have been thinking about migrating my forest application to Nest.Js (express.js underneath) to give a more opinionated structure. Do you have any guide on how I can configure the forestadmin middleware for nest.js?

Thank you @anon23361380 for your efforts.

Tanish

---

<div class="post-metadata">

**Author:** ![anon23361380](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@anon23361380](https://community.forestadmin.com/u/anon23361380)\
**Post date:** [November 30, 2021, 4:26pm UTC](https://community.forestadmin.com/t/unable-to-parse-only-one-collection-data/3796/7 "2021-11-30T16:26:26Z")

</div>

@tanish happy to hear that 🙂  
Sadly we don’t have any guide on how to configure the middleware for nest.js since we do not support it yet, but some users use it already, so it might work. Hopefully this [ticket](https://community.forestadmin.com/t/authentication-error-after-migrating-to-forest-express-sequelize-v7/2440/8) can help you do it.
