Optionalopts: {Optionalcolumn: Raw<any> | ColumnRef<EntitySchema<TEntity>>Optionalcolumn: Raw<any> | ColumnRef<EntitySchema<TEntity>>Delete rows matched by the current WHERE clause (CTI: atomic).
Look up a single row by PK, typed to this variant.
Look up multiple rows by PK, typed to this variant.
Like find but throws EntityNotFoundError when absent.
Eager-load a relation declared on TEntity. Identical to
EntityQuery.include.
Optionalcustomize: (q: SchemaQueryBuilder<any, any>) => voidInsert a new variant row. The discriminator is set automatically.
For CTI: inserts the base row first, then the variant row (transactional).
Optionaldirection: "asc" | "desc"Optionalbindings: any[]Optionalonfulfilled: Optionalonrejected: ((reason: any) => TReturn2 | PromiseLike<TReturn2>) | nullUpdate variant-specific columns for rows matched by the current WHERE clause. For CTI, only the variant table is updated.
Optionaloperator: stringOptionalvalue: any
A
DbSet-like handle scoped to a single polymorphic variant (one branch of a discriminated union entity). All reads are automatically pre-filtered by the discriminator; all writes apply the correct STI / CTI logic.Obtain via
DbSet.ofVariant('key')— analogous to EF Core'sSet<DerivedType>().