Default and max count for queryObject queries

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.

2 Likes