A type constant for marking a column as not null. Can be used with $narrowPartial.
$narrowPartial
Example:
const person = await db.selectFrom('person') .where('nullable_column', 'is not', null) .selectAll() .$narrowType<{ nullable_column: NotNull }>() .executeTakeFirstOrThrow() Copy
const person = await db.selectFrom('person') .where('nullable_column', 'is not', null) .selectAll() .$narrowType<{ nullable_column: NotNull }>() .executeTakeFirstOrThrow()
Readonly
Generated using TypeDoc
A type constant for marking a column as not null. Can be used with
$narrowPartial
.Example: