Skip to content

postgrelize / SetOperationOptions

Type Alias: SetOperationOptions ​

SetOperationOptions = Readonly<{ all?: boolean; }>

Defined in: src/expressions/query-expressions.ts:14

postgrelize extension

Options of Subquery.union, Subquery.intersect and Subquery.except. PostgreSQL extension.

Example ​

ts
const opts: SetOperationOptions = { all: true };
const rows = Post.subquery({ attributes: ['userId'] }).union(Task.subquery({ attributes: ['userId'] }), opts);

Released under the MIT License.