Skip to main content

lte (lessThanOrEqual)

lte(column: string, param: Param)

import { OP, Param } from 'mysql2-orm';

/**
* { condition: '`id` <= ?', params: [16] }
*/
OP.lte('id', 16);

/**
* { condition: '`createdAt` <= ?', params: ['2024-01-01'] }
*/
OP.lte('createdAt', '2024-01-01');