Skip to content
New issue

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

error stack trace #189

Open
leegunwoo98 opened this issue Jan 9, 2025 · 0 comments
Open

error stack trace #189

leegunwoo98 opened this issue Jan 9, 2025 · 0 comments

Comments

@leegunwoo98
Copy link

I am using prisma-extension-kysely pretty extensively. I have noticed that the stack trace thrown from any wrong query doesn't show the stack trace from my project. For example
const prismaKysely = prisma.$extends(
kyselyExtension({
kysely: (driver) =>
new Kysely({
dialect: {
createDriver: () => driver,
createAdapter: () => new MysqlAdapter(),
createQueryCompiler: () => new MysqlQueryCompiler(),
createIntrospector: (db) => new MysqlIntrospector(db)
}
})
})
);

If I do
await prismaKysely.$kysely
.selectFrom("users1" as any)
.where("id", "=", 0)
.select("id")
.execute();

Which is a totally wrong query, the stack only shows the error inside the prisma client, not the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant