You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sugar decorators for Filter and Where parameters #1749
Let's add few more @param flavors to simplify declaration of Filter and Where arguments.
@param.query.filter(Todo)// alias for @param.query.object('filter', getFilterSchemaFor(Todo))
@param.query.filter('filterObj',Todo)// alias for @param.query.object('filterObj', getFilterSchemaFor(Todo))
@param.query.where(Todo)// alias for @param.query.object('where', getWhereSchemaFor(Todo))
@param.query.where('whereObj',Todo)// alias for @param.query.object('whereObj', getWhereSchemaFor(Todo))
Acceptance criteria
Implement @param.query.filter and @param.query.where as outlined above. Test must be included, try to work test first. (Follow TestDrivenDevelopment - start by adding a failing test, and so on.)
Update REST Controller template to use these new shortcuts
Update all example controllers to use these new shortcuts
Update code examples in the tutorial documentation pages to match the updated source code of controllers
Activity
[-]Sugar decorators for Filter and Where arguments[/-][+]Sugar decorators for Filter and Where parameters[/+]dougal83 commentedon Dec 17, 2019
dhmlau commentedon Jan 10, 2020
@bajtos @dougal83, what's your suggestion on how to handle this issue? (part of the Q1 planning). Thanks.
2 remaining items
feat(openapi-v3): add sugar decorators for filter/where params
feat(openapi-v3): add sugar decorators for filter/where params
feat(openapi-v3): add sugar decorators for filter/where params
feat(openapi-v3): add sugar decorators for filter/where params
feat(openapi-v3): add sugar decorators for filter/where params
feat(openapi-v3): add sugar decorators for filter/where params
feat(openapi-v3): add sugar decorators for filter/where params
feat(openapi-v3): add sugar decorators for filter/where params
feat(openapi-v3): add sugar decorators for filter/where params
feat(openapi-v3): add sugar decorators for filter/where params
raymondfeng commentedon Feb 28, 2020
Implemented by #4745