UNPKG

@clickup/ent-framework

Version:

A PostgreSQL graph-database-alike library with microsharding and row-level security

48 lines (25 loc) 1.43 kB
[**@clickup/ent-framework**](../README.md) *** [@clickup/ent-framework](../globals.md) / Where # Type Alias: Where\<TTable\> > **Where**\<`TTable`\>: `object` & `object` & \{ \[K in Field\<TTable\>\]?: Value\<TTable\[K\]\> \| ReadonlyArray\<Value\<TTable\[K\]\>\> \| \{ $lte: NonNullable\<Value\<TTable\[K\]\>\> \} \| \{ $lt: NonNullable\<Value\<TTable\[K\]\>\> \} \| \{ $gte: NonNullable\<Value\<TTable\[K\]\>\> \} \| \{ $gt: NonNullable\<Value\<TTable\[K\]\>\> \} \| \{ $overlap: NonNullable\<Value\<TTable\[K\]\>\> \} \| \{ $ne: Value\<TTable\[K\]\> \| ReadonlyArray\<Value\<TTable\[K\]\>\> \} \| \{ $isDistinctFrom: Value\<TTable\[K\]\> \} \} Defined in: [src/types.ts:276](https://github.com/clickup/ent-framework/blob/master/src/types.ts#L276) Table -> { f: 10, [$or]: [ { f2: "a }, { f3: "b""} ], $literal: ["x=?", 1] } ## Type declaration ### $and? > `optional` **$and**: `ReadonlyArray`\<[`Where`](Where.md)\<`TTable`\>\> ### $or? > `optional` **$or**: `ReadonlyArray`\<[`Where`](Where.md)\<`TTable`\>\> ### $not? > `optional` **$not**: [`Where`](Where.md)\<`TTable`\> ### $literal? > `optional` **$literal**: [`Literal`](Literal.md) ### $shardOfID? > `optional` **$shardOfID**: `string` ## Type declaration ### id? > `optional` **id**: `TTable` *extends* `object` ? `unknown` : `string` \| `string`[] ## Type Parameters | Type Parameter | | ------ | | `TTable` *extends* [`Table`](Table.md) |