Skip to content

Configuration option to change the default limit on the size of query result collection #8149

Closed
@vzukanov

Description

@vzukanov

New Feature / Enhancement Checklist

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions