15 lines
208 B
TypeScript
15 lines
208 B
TypeScript
import { Op, Sequelize } from 'sequelize';
|
|
|
|
export default {
|
|
$exists(value, ctx) {
|
|
return {
|
|
[Op.not]: null,
|
|
};
|
|
},
|
|
$notExists(value, ctx) {
|
|
return {
|
|
[Op.is]: null,
|
|
};
|
|
},
|
|
};
|