Skip to main content

gt (greaterThan)

gt(column: string, param: Param)

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

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

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