Prefix
Prefixes a string attribute value:
import { prefix } from 'dynamodb-toolbox/transformers/prefix'
const prefixedSchema = string().transform(prefix('PREFIX'))
The default delimiter is #
, but you can override it:
import { prefix } from 'dynamodb-toolbox/transformers/prefix'
const prefixedSchema = string().transform(
prefix('PREFIX', { delimiter: '.' })
)