Created
January 7, 2021 10:42
-
-
Save cschuff/8f412d88d25a5ab86b644dc9cd6a127c to your computer and use it in GitHub Desktop.
mimick nestjsx/crud query params
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ApiQuery({ | |
isArray: true, | |
name: 'sort', | |
description: `Adds sort by field ('[field]||[ASC|DESC]'). <a href="https://github.com/nestjsx/crud/wiki/Requests#sort" target="_blank">Docs</a>`, | |
required: false, | |
schema: { | |
type: 'array', | |
items: { | |
example: 'createdAt||ASC', | |
type: 'string', | |
}, | |
}, | |
style: 'form', | |
explode: true, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment