UNPKG

@clickup/ent-framework

Version:

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

44 lines (26 loc) 954 B
[**@clickup/ent-framework**](../README.md) *** [@clickup/ent-framework](../globals.md) / Query # Interface: Query\<TOutput\> Defined in: [src/abstract/Query.ts:8](https://github.com/clickup/ent-framework/blob/master/src/abstract/Query.ts#L8) A very lean interface for a Query. In practice each query is so different that this interface is the only common part of them all. ## Type Parameters | Type Parameter | | ------ | | `TOutput` | ## Properties | Property | Type | | ------ | ------ | | <a id="is_write"></a> `IS_WRITE` | `boolean` | ## Methods ### run() > **run**(`client`, `annotation`): `Promise`\<`TOutput`\> Defined in: [src/abstract/Query.ts:10](https://github.com/clickup/ent-framework/blob/master/src/abstract/Query.ts#L10) #### Parameters | Parameter | Type | | ------ | ------ | | `client` | [`Client`](../classes/Client.md) | | `annotation` | [`QueryAnnotation`](QueryAnnotation.md) | #### Returns `Promise`\<`TOutput`\>