Skip to content
🚀 This documentation is for unreal-orm 1.0.0 alpha which requires SurrealDB 2.0 SDK. For use with version 1.x, see here.

OmitSelect

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

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

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 }