Skip to content

Adding ability to add custom sort params to @OrderBy params#10

Merged
felipesabino merged 1 commit intomasterfrom
feature/order-by-extra-columns
Aug 11, 2017
Merged

Adding ability to add custom sort params to @OrderBy params#10
felipesabino merged 1 commit intomasterfrom
feature/order-by-extra-columns

Conversation

@felipesabino
Copy link
Copy Markdown

orderBy sort column auto-generated array now can be extended to have custom fields as pleased instead of just having the fields from returned object provided on Field decorator.

This is passed as an array to the OrderBy decorator, and all strings passed will be added as possible sort columns to the schema.

Example:

@OrderBy(['extraField']) orderBy?: OrderByItem[] // 'extraField' is added as a possible value to the sort enum

Also fixed some typos on error messages

@felipesabino felipesabino changed the title Adding ability to add ustom sort params to @OrderBy params Adding ability to add custom sort params to @OrderBy params Aug 9, 2017
@felipesabino felipesabino merged commit 54a4f99 into master Aug 11, 2017
@felipesabino felipesabino deleted the feature/order-by-extra-columns branch August 11, 2017 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants