tachybase_todo/packages/database/src/operators/association.ts
2021-12-06 21:23:34 +08:00

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,
};
},
};