-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow defining default values for query filters #168
Comments
@gcirne see #172 - this is for hasMany relations, but perhaps we can do something similar for what you're requesting. @raymondfeng thoughts? |
Sure, that sounds good. Guilherme Machado Cirne On Fri, Jul 11, 2014 at 2:06 PM, Fabien Franzen [email protected]
|
Maybe we should try to unify everything under
|
My ambition for a LoopBack model will be:
|
The defaultScope should support your use case now. |
For example, I would like to specify a default value of 10 for the limit filter of a particular model. In situations where no explicit limit is given, then the default value of 10 should be used.
The text was updated successfully, but these errors were encountered: