Skip to main content

gte (greaterThanOrEqual)

gte(column: string, param: Param)

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

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

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