model - Waterline default query condition -
Where can I set the position of default / sort in my Cells JS Waterline model? I will use in Rail
Pal does not support the default criteria on a per-model basis, but if you are using You can define the default criteria for the root by overriding in your config / routes.js file, for example:
"GET / user": { Controller: 'user', verb: 'search', where: {'deleted': wrong}, sort: 'age DESC'}
This will work even when you Do not make your User The search
action is defined in the Controller.js file, because the template has been added by default to you.
Comments
Post a Comment