# Check if node-red-contrib-mongodb2 node has read all records

**URL:** <https://discourse.nodered.org/t/check-if-node-red-contrib-mongodb2-node-has-read-all-records/49020>\
**Category:** General\
**Created:** [28 July 2021 13:21 UTC](https://discourse.nodered.org/t/check-if-node-red-contrib-mongodb2-node-has-read-all-records/49020 "2021-07-28T13:21:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [28 July 2021 19:34 UTC](https://discourse.nodered.org/t/check-if-node-red-contrib-mongodb2-node-has-read-all-records/49020/2 "2021-07-28T19:34:36Z")

</div>

> [@OmkarNodered](#):
>
> how can I make sure that it has read all 25 records from the database?

why wouldnt it ? 😉  
from what you describe you're returning all records from the db .. its not a complicated query .. so just trust that the code will do what its supposed to.

if you want to check the record count returned is correct .. install the mongodb [Compass](https://www.mongodb.com/products/compass) software and run the same query to confirm, before relying on the node completely.

**[EDIT]** I am more concerned that you are still using a node that hasn't been updated for more than 4 years.  
I later remembered that about a month ago you were using using mongodb3 node .. and that you updated to [node-red-node-mongodb](https://flows.nodered.org/node/node-red-node-mongodb) instead. What happened ? why now did you install an even older one ? 😂

> [@Mongo db deprecated](https://discourse.nodered.org/t/mongo-db-deprecated/48041/4):
>
> @zenofmud and @UnborN thanks for the help.. slightly_smiling_face I have uninstalled node-red-contrib-mongodb3 and using node-red-node-mongodb, working fine.

---

_[View the full topic](https://discourse.nodered.org/t/check-if-node-red-contrib-mongodb2-node-has-read-all-records/49020)._
