Bug: type RawQueryResult doesn't allow boolean
naturalethic opened this issue · 0 comments
naturalethic commented
Describe the bug
db.query<boolean[][]>
results in a type error.
In my case, I'm looking at the result of a password compare, so a boolean value is a valid return type.
Steps to reproduce
Use query with a boolean return type.
Expected behaviour
export type RawQueryResult = string | number | symbol | null | RawQueryResult[] | Record<string | number | symbol, unknown>;
to
export type RawQueryResult = string | number | boolean | symbol | null | RawQueryResult[] | Record<string | number | symbol, unknown>;
SurrealDB version
surreal 1.0.0+20230913.54aedcd for linux on aarch64
SurrealDB.js version
0.9.1
Contact Details
No response
Is there an existing issue for this?
- I have searched the existing issues
Code of Conduct
- I agree to follow this project's Code of Conduct