Skip to content

postgrelize / FindAttributeOptions

Type Alias: FindAttributeOptions ​

FindAttributeOptions = readonly (string | readonly [unknown, string])[] | AttributeSpec

Defined in: src/model/select-options.ts:26

Selected attributes: a list of names or [expression, alias] pairs, or an { include, exclude } spec.

Example ​

ts
const list: FindAttributeOptions = ['id', 'name', [fn('count', col('id')), 'total']];
const spec: FindAttributeOptions = { include: [[literal('1'), 'one']], exclude: ['password'] };

Released under the MIT License.