postgrelize / notExists
Function: notExists() ​
notExists(
subquery):Exists
Defined in: src/expressions/methods.ts:179
postgrelize extensionNOT EXISTS (subquery). PostgreSQL extension.
Parameters ​
subquery ​
Subquery from Model.subquery().
Returns ​
Condition usable as where.
Example ​
ts
await User.findAll({ where: notExists(Post.subquery({ where: { userId: col('User.id') } })) });