Skip to content

Conditional save fails for new field with default value #567

Open
@emise

Description

@emise

I think this is lacking some documentation, and I don’t know if it’s the intended effect, but-
If I add a new field with a default value to an existing Model, and then I retrieve this new field for a conditional save, the new field is actually populated with null instead of the default value, causing the conditional save to fail.

However, if you try to fetch the value via Pynamo, such as Model.new_field, this returns the expected default value. This seems super misleading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions