Skip to main content

ne (notEqual)

ne(column: string, param: Param)

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

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

/**
* { condition: '`name` != ?', params: ['John'] }
*/
OP.ne('name', 'John');