Skip to content

postgrelize / notExists

Function: notExists() ​

notExists(subquery): Exists

Defined in: src/expressions/methods.ts:179

postgrelize extension

NOT EXISTS (subquery). PostgreSQL extension.

Parameters ​

subquery ​

Subquery

Subquery from Model.subquery().

Returns ​

Exists

Condition usable as where.

Example ​

ts
await User.findAll({ where: notExists(Post.subquery({ where: { userId: col('User.id') } })) });

Released under the MIT License.