Skip to content

postgrelize / WhereAttributeHash

Type Alias: WhereAttributeHash<T> ​

WhereAttributeHash<T> = WhereAttributeShape<[T]> & object & WhereLogic<T>

Defined in: src/model/where-options.ts:204

Where object keyed by attribute names, nested JSON paths ('meta.a'), casts ('id::text') or included columns ('$posts.title$'). Without a type argument every key is accepted, as in Sequelize v6.

Type Parameters ​

T ​

T = any

Example ​

ts
const any: WhereAttributeHash = { id: 1, 'meta.key': 'a' };
const typed: WhereAttributeHash<{ id: number }> = { id: 1 };

Released under the MIT License.