Bug: new StringRecordId("") causes the connection to be dropped. #325
Labels
bug
Something isn't working
pending surrealdb fix
This issue depends on an issue in the SurrealDB repository
Describe the bug
While creating a record, if it happened to pass new StringRecordId(''), The engine gets disconnected. And we are receiving the error as "The engine reported the connection to surrealdb has dropped"
Steps to reproduce
await db.create('demo', { name: new StringRecordId('')})
Expected behaviour
The connection shouldn't be dropped, instead it should throw an error
SurrealDB version
1.5.4
JavaScript SDK version
1.0.0-beta.18
Contact Details
arunv@piraiinfo.com
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: