Replies: 1 comment
-
For issue 1: you need to await the // /server/api/todos/index.get.ts
import { eq } from 'drizzle-orm'
export default eventHandler(async (event) => {
const session = await requireUserSession(event)
const db = await useDatabase()
const todos = await db.select().from(tables.todos).where(eq(tables.todos.userId, session.user.id)).all()
return todos
} For issue 2: There's no |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After a lot of search (10hours) I really tiered with types on typescript on my app with nuxt and drizzle(mysql). Please I need help...
My project is clone from repo next but with mysql https://github.com/atinux/nuxt-todos-edge
I have some error of select/insert/delete/update/ect...
Setup:
How I use:
Beta Was this translation helpful? Give feedback.
All reactions