# Default and max count for queryObject queries

**URL:** <https://discuss.dgraph.io/t/default-and-max-count-for-queryobject-queries/16041>\
**Category:** GraphQL\
**Tags:** dgraph\
**Created:** [November 12, 2021, 4:46pm UTC](https://discuss.dgraph.io/t/default-and-max-count-for-queryobject-queries/16041 "2021-11-12T16:46:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fizzi](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/fizzi/32/8427_2.png) [@Fizzi](https://discuss.dgraph.io/u/Fizzi)\
**Post date:** [November 12, 2021, 4:46pm UTC](https://discuss.dgraph.io/t/default-and-max-count-for-queryobject-queries/16041/1 "2021-11-12T16:46:36Z")

</div>

It would be nice to have a sane default value for the `first` variable when querying objects. Returning 300,000 objects is usually not very useful.

Additionally, it would be nice to be able to enforce a hard maximum on the amount returned. It concerns me that any user could request all the objects in the database at once at will.

Perhaps some acceptable values would be:  
Default: 10  
Maximum: 100

A nice to have would be for certain auth conditions for bypassing the maximum, but this isn’t particularly important at least for me.

---

<div class="post-metadata">

**Author:** ![shadow88sky](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/shadow88sky/32/9850_2.png) [@shadow88sky](https://discuss.dgraph.io/u/shadow88sky)\
**Post date:** [June 20, 2022, 3:10am UTC](https://discuss.dgraph.io/t/default-and-max-count-for-queryobject-queries/16041/2 "2022-06-20T03:10:50Z")

</div>

any update here? It’s very important
