We need a single parameter that can be passed into a getAll*(..) method that handles limiting or otherwise specifying requirements on what data should be returned.
Note: At least for now, this is not for sorting purposes, just querying the database purposes.
We need a single parameter that can be passed into a
getAll*(..)
method that handles limiting or otherwise specifying requirements on what data should be returned.Note: At least for now, this is not for sorting purposes, just querying the database purposes.
What requests do we have? example:
Generic query values
query.limit
: Value containing MAX amount of entries that should be returned.query.dateMin
: Date object for minimum date the result should havequery.dateMax
: Data object for maximum date the result should haveUser specific
query.pending
: Boolean for whether or not a user is pending.query.name
: Filter by user's name