NullableIndex() function
Declares the pair of partial indices with no options of their own.
Signature:
export declare function NullableIndex(target: any, propertyName: string, propertyDescriptor?: PropertyDescriptor): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
target |
any |
Model prototype the property belongs to. |
|
propertyName |
string |
Nullable column to split. |
|
propertyDescriptor |
PropertyDescriptor |
(Optional) Unused; present because a decorator receives it. |
Returns:
void
Remarks
The bare form. Each half is a partial index keyed on the null test itself, so it serves IS NULL and IS NOT NULL lookups; use the factory form to add a method, a name, or a predicate of your own.