Skip to main content

custom-transformer

custom transformer

You can transform stringified arrays, booleans, etc.

class Request {
@query('tags')
tags!: string[]; // Will cast from "tag1,tag2" to ['tag1', 'tag2']
}