Skip to content

An AttributeValue may not contain an empty string #32

@SamVerschueren

Description

@SamVerschueren

If some properties are empty strings, the insert/update fails. Should we filter out those empty strings or is it up to the user?

example

const key = {
    email: '[email protected]'
};

const values = {
    name: {
       firstName: 'Sam',
       name: ''
    }
};

User.insert(key, values).exec().catch(err => {
    //=> ExpressionAttributeValues contains invalid value: One or more parameter values were invalid: An AttributeValue may not contain an empty string for key :v_name
});

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions