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
1.2.10
Microsoft Windows NT 10.0.22631.0 x64
i used bun-sql with drizzle orm and nextjs
here is the drizzle config
import { drizzle } from 'drizzle-orm/bun-sql' import * as schema from './schema' export const db = drizzle(process.env.DATABASE_URL!, { casing: 'snake_case', schema })
and router
export const packagesRouter = new Elysia({ prefix: '/packages' }) .get('/', async () => { const res = await db.select().from(packagesTable) return res })
if i return res[0] is working but returning res is getting [object Object][object Object][object Object] response
return the array of objects
No response
[object Object][object Object][object Object]
node_modules
bun.lockb
i tired
The text was updated successfully, but these errors were encountered:
also this code is working but i want i don't need to specify response type
export const packagesRouter = new Elysia({ prefix: '/packages' }) .get('/', async () => { const res = await db.select().from(packagesTable) return res }, { response: t.Array(packageSelectSchema) })
Sorry, something went wrong.
No branches or pull requests
What version of Elysia is running?
1.2.10
What platform is your computer?
Microsoft Windows NT 10.0.22631.0 x64
What steps can reproduce the bug?
i used bun-sql with drizzle orm and nextjs
here is the drizzle config
and router
if i return res[0] is working but returning res is
getting
[object Object][object Object][object Object] response
What is the expected behavior?
return the array of objects
What do you see instead?
No response
Additional information
[object Object][object Object][object Object]
Have you try removing the
node_modules
andbun.lockb
and try again yet?i tired
The text was updated successfully, but these errors were encountered: