Skip to content

postgrelize / CteFindOptions

Type Alias: CteFindOptions ​

CteFindOptions = Readonly<{ from?: JoinSources; source?: string | Subquery; with?: WithOption; }>

Defined in: src/model/cte-builder.ts:87

postgrelize extension

CTE-related find options. PostgreSQL extension.

Combined into FindOptions and CountOptions.

Example ​

ts
const opts: CteFindOptions = {
  with: { recent: { query: Post.subquery({ where: { published: true } }) } },
  source: 'recent',
};

Released under the MIT License.