We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuxt 3.13 Node 18
export default defineEventHandler(async event => { const db = useDatabase() const res = await db.sql`INSERT INTO orders VALUES (null, ${data.name})` return res })
If the INSERT was successful res will be {success: true}
INSERT
res
{success: true}
Typescript infer the type as DefaultSQLResult
DefaultSQLResult
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Nuxt 3.13
Node 18
Reproduction
Describe the bug
If the
INSERT
was successfulres
will be{success: true}
Typescript infer the type as
DefaultSQLResult
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: