Skip to main content

presence

Use the presence validator when you want to guarantee a field is not blank before saving.

export default class Post extends Dream {
public readonly get table() {
return 'posts' as const
}

public id: number

@Validates('presence')
public content: string
}