dyna-record
    Preparing search index...

    Type Alias WriteConditionValue<T, K>

    WriteConditionValue:
        | Exclude<EntityFilterRecord<T>[K], undefined>
        | (IsNullableConditionKey<T, K> extends true ? null : never)

    The conditions one key of a write condition accepts: everything a query filter accepts for it, plus null where the attribute is nullable.

    dyna-record removes a nulled attribute rather than storing it, so in a write condition null means "not set" and matches a row where the attribute is absent (DynamoDB's attribute_not_exists). On an attribute that cannot be absent it could never match, so it is not offered there. Inside an object compared whole, null on a nullable field means the same, as it does in a query filter (see EqualityConditionFor).

    Type Parameters

    • T extends default

      The entity the key belongs to.

    • K extends keyof EntityFilterRecord<T>

      The condition key: an attribute or a dot path below one.