Skip to content

Integer id silently inserts an empty record without raising an error #231

Open
@palerdot

Description

@palerdot

Issue

When we provide our own integer id to the repository for saving, it silently inserts an empty record with a generated ULID.

For example, providing an integer id like 1

album = await albumRepository.save(1, album)

will insert an empty record {} with a generated ULID album:01FJYWEYRHYFT8YTEGQBABJ43J - {} .

Expected Behaviour

The library should raise an error saying String expected for id or can implicitly convert the integer to string.

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