Open palerdot opened 7 months ago
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
1
album = await albumRepository.save(1, album)
will insert an empty record {} with a generated ULID album:01FJYWEYRHYFT8YTEGQBABJ43J - {}.
{}
album:01FJYWEYRHYFT8YTEGQBABJ43J - {}
The library should raise an error saying String expected for id or can implicitly convert the integer to string.
String expected for id
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
will insert an empty record
{}
with a generated ULIDalbum:01FJYWEYRHYFT8YTEGQBABJ43J - {}
.Expected Behaviour
The library should raise an error saying
String expected for id
or can implicitly convert the integer to string.