# How can i get all data. (findAll error)

**URL:** <https://community.parseplatform.org/t/how-can-i-get-all-data-findall-error/1453>\
**Category:** Cloud Code\
**Created:** [March 15, 2021, 1:59pm UTC](https://community.parseplatform.org/t/how-can-i-get-all-data-findall-error/1453 "2021-03-15T13:59:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aytugulis](https://community.parseplatform.org/user_avatar/community.parseplatform.org/aytugulis/32/512_2.png) [@aytugulis](https://community.parseplatform.org/u/aytugulis)\
**Post date:** [March 15, 2021, 1:59pm UTC](https://community.parseplatform.org/t/how-can-i-get-all-data-findall-error/1453/1 "2021-03-15T13:59:21Z")

</div>

Hello, I want to get all my data. find() method get me just 100 data. So I use findAll().  
It works when i use that my local using back4app credentials and db.  
Bu when i pushed my code on back4app, I got findAll is not a function error. (If i use find method it works.)

Back4app parse-server version is 4.2.0

---

<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 15, 2021, 3:57pm UTC](https://community.parseplatform.org/t/how-can-i-get-all-data-findall-error/1453/2 "2021-03-15T15:57:59Z")

</div>

You can use the `each()` function for that.

---

<div class="post-metadata">

**Author:** ![uzaysan](https://community.parseplatform.org/user_avatar/community.parseplatform.org/uzaysan/32/59_2.png) [@uzaysan](https://community.parseplatform.org/u/uzaysan)\
**Post date:** [March 15, 2021, 5:55pm UTC](https://community.parseplatform.org/t/how-can-i-get-all-data-findall-error/1453/3 "2021-03-15T17:55:21Z")

</div>

You can set a new limit. Default limit is 100.

`query.limit(999999999);`

Its very unlikely that you hit 999999999 limit. So It should work.

---

<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 16, 2021, 5:58pm UTC](https://community.parseplatform.org/t/how-can-i-get-all-data-findall-error/1453/4 "2021-03-16T17:58:51Z")

</div>

There is a benefit in using `each()` as it makes sure everything is returned and also splits the fetches in smaller batches.
