Is there a way to check the length of each string within an array after transform?
queries: z
.string()
.transform(value => value
.split(',')
.map(query => query.trim())
.filter(query => query.trim() !== ''),
)
.pipe(
z.array(
z.string()
.min(2, { message: 'Queries must be at least 2 characters.' }),
),
),