# Server-side configuration of the default query result size limit?

**URL:** <https://community.parseplatform.org/t/server-side-configuration-of-the-default-query-result-size-limit/2889>\
**Category:** Parse Server 📡\
**Tags:** query\
**Created:** [September 1, 2022, 2:49pm UTC](https://community.parseplatform.org/t/server-side-configuration-of-the-default-query-result-size-limit/2889 "2022-09-01T14:49:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vasiliyzukanov](https://community.parseplatform.org/user_avatar/community.parseplatform.org/vasiliyzukanov/32/1064_2.png) [@vasiliyzukanov](https://community.parseplatform.org/u/vasiliyzukanov)\
**Post date:** [September 1, 2022, 2:49pm UTC](https://community.parseplatform.org/t/server-side-configuration-of-the-default-query-result-size-limit/2889/1 "2022-09-01T14:49:30Z")

</div>

By default, all queries have a limit of 100 on the returned collection size. This limit can be changed by invoking `query.limit(<some number>)` in JS or analogous methods in other SDKs. That’s great, but cumbersome and error-prone.  
Is there a way to change the default limit of 100 on the server side, such that it will apply to queries from any client?

---

<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:** [September 5, 2022, 4:31pm UTC](https://community.parseplatform.org/t/server-side-configuration-of-the-default-query-result-size-limit/2889/2 "2022-09-05T16:31:50Z")

</div>

There’s a Parse Server option called `maxLimit` that you can use to set that.

---

<div class="post-metadata">

**Author:** ![vasiliyzukanov](https://community.parseplatform.org/user_avatar/community.parseplatform.org/vasiliyzukanov/32/1064_2.png) [@vasiliyzukanov](https://community.parseplatform.org/u/vasiliyzukanov)\
**Post date:** [September 6, 2022, 7:03am UTC](https://community.parseplatform.org/t/server-side-configuration-of-the-default-query-result-size-limit/2889/3 "2022-09-06T07:03:24Z")

</div>

Unfortunately, `maxLimit` is a different feature, so it looks like what I want to achieve isn’t supported yet.  
I opened an issue in GitHub for a new feature (approved) and submitted a PR. Will appreciate if anyone could assist me in merging it.

> <https://github.com/parse-community/parse-server/issues/8149>
>
> \### New Feature / Enhancement Checklist
> \<!--
> Check every following box \[x\]… before submitting your issue.
> Click the "Preview" tab for better readability.
> Thanks for contributing to Parse Platform!
> \--\>
> 
> \- \[x \] I am not disclosing a \[vulnerability\](https://github.com/parse-community/parse-server/blob/master/SECURITY.md).
> \- \[x \] I am not just asking a \[question\](https://github.com/parse-community/.github/blob/master/SUPPORT.md).
> \- \[x \] I have searched through \[existing issues\](https://github.com/parse-community/parse-server/issues?q=is%3Aissue).
> 
> \### Current Limitation
> By default, all queries have a limit of 100 on the returned collection size. This limit can be changed by invoking \`query.limit(\<some number\>)\` in JS or analogous methods in other SDKs, but this approach is cumbersome and error-prone.
> I think that giving Parse-Server users an ability to change the default limit on the server side would be great.
> 
> \### Feature / Enhancement Description
> Additional startup configuration option that changes the default query result size limit.
> Proposed name: \`queryResultSizeLimit\`
> 
> \### Example Use Case
> 
> \`\`\`
> parse-server \\                                                                                                                               
> --publicServerURL https://domain/parse \\                                                                                     
> --appName app \\                                                                                                                                
> --databaseURI mongodb://localhost:27017/app \\                                                                                                  
> --appId appId \\                                                                
> --queryResultSizeLimit 10000
> \`\`\`
> 
> \### Alternatives / Workarounds
> The current workaround is to change the limit manually in all queries on the client side. If there are multiple clients, all of them need to perform these changes.
> 
> \### 3rd Party References
