JT Smith
JT Smith
If you are looking for what the query that is generated is you can do: ```ts const sql = await this.userRepository.getQuery(); ```
I'm having a similar problem with generics creating unwanted UnwrapRefs . Here's a reproduction in case it helps. https://www.typescriptlang.org/play?ssl=46&ssc=50&pln=46&pc=80#code/JYWwDg9gTgLgBAbzgEwKYDNgDtUGUbSpwC+c6UEIcA5GNsAIbUDcAUKJLHDAJ5hFIAqlgDuUBmABKGEmQpVqANwCuqaq1a9+cAIJYeAFQYAjADZEAvIlZxbcAM4xl6dAHVUAEQhYYAYQZQqDrGEMowAFxw0gDG0MgAPAz6ADRwSTwAfMk2dpiopsj2kTFx8Y5Q2ADmqelZrMQaWkSC9qhQALIQaKZwVgg5to7Obp7efgFBIWHFqLFQCek1+nV2ZMD5hZH9q6vAyJHlVdk7dsqtUFgMIKgHMBVY1QMk2Q1NugAKAJIA0qg8nd1etZVkMXO4vD5-IFgqEIlFZqVFmllsdcusCkVgSc4HtbvdHti4GAKooGDBUL8eHijk8Gg1NHwiO0GABrVAA-LMsDxAxwVAAD3JWEK8LmCUOD1SekMJnMGQyQO2dgA2t8cVg4GyeBB0HADABdLZPEH5WZwgyq-XK6h5DHUfVsVbENjOxqMuAc0xcoHMtmernxJW2FptSIhjpdfKOuw6L6UyKxn5-T0ujJsVixLCOOAgVl4AiBIE8vmC1DC+yav46j2Rr0SDIACgA9AAqIkBK4VltNgCUvQV-SemezlTLbTJlhQGGw+cIDeo9koqD21FSQZ2jgnkQbPaNhNWxIgYHsAH5Iu8AjBGKZ4v6JMqDdbWuZojB7XVjXZSBYFQ314TD2PLZiFRE5iB7UCdgYV9gG8TF-2xVoYHwCcG0CexlFMOEL1ga9b1rLkHytBdTVfd8+wQ-duAAC2AewADpAIrKx0Mw+AGArYQxAkaR0HiHCrwYG87zAIin1It99XlZg4CbJs4HiABaRSaLonEKxgaiiEPMxUBAT8wMgwlR2QpwXAAMXkHQ6B3LEqNWTS6PopCUPJP9ZLbexqIgEQqhLK4wHMOAzgYUc4G7EgewMnYGkJWKvx7dNVjktJTB6TSiFBXVgCncxyWQMhoFUisBQC8wNFWQInAuOBRxwcQ3MS+ogA
This has become a showstopper for me as well. I ultimately can't compile for production because of this.
When I go to compile my app I get errors like this: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/jtsmith/ving/.output/server/node_modules/drizzle-orm/mysql-core/expressions' imported from /Users/jtsmith/ving/.output/server/index.mjs These errors are not coming from my code, but...
I've found a way to work around this problem. It's nasty, but it works. ```ts import type { MySql2Database } from 'drizzle-orm/mysql2/index.js'; import type { SQL } from 'drizzle-orm/sql/index.js'; import...
Or better yet, give a generic method based upon the driver used to just call `db.disconnect()`
Since I'm installing this just to learn about objection I'm afraid I can't offer any insights as to why it doesn't work. But the regular koa example worked by just...
> When purchasing is closed for a conference and a user attempts to go to /$CONFERENCE/purchase, they encounter a 404 page with no real content. This is unclear and confusing...
Yes it was. The user received the page, and there's nothing either the user or the server would/could change about the result. It may not be the page they expected,...
Interesting. I just added that to my app, but outside of PTT.