Skip to content
🚀 This documentation is for unreal-orm 1.0.0 alpha which requires SurrealDB 2.0 alpha SDK. For the stable version, see npm.

OmitSelect

OmitSelect<TFields> = { [K in keyof TFields]?: true }

Defined in: define/table/types/select.ts:144

Type-safe omit selection object. Maps field names to true to omit them from the result.

TFields extends Record<string, FieldDefinition<unknown>>

The field definitions of the table.

// Omit password field
{ password: true }
// Omit multiple fields
{ password: true, secret: true }