Calvin

Results 6 comments of Calvin

@jeremydaly any chance you'd be okay with me rebasing this onto main so we can get it in? i'm currently having to write custom logic to resolve generated date strings...

i just ran into this issue and found that it was from having updated my npm version from 6.x to 8.x while doing some other bundling testing. i reset it...

opened a pr in the data-api-client repo to fix https://github.com/jeremydaly/data-api-client/pull/117 worth noting that at the request of the author, this pr targets their aws sdk v3 migration branch, not main....

> Could you explain how do you get from here: > > ``` > export const UserRepository = dataSource.getRepository(User).extend({ > findOneByName(name: string) { > return this.findOneBy({ name }) // })...

> I solved the type problem with https://www.typescriptlang.org/docs/handbook/2/functions.html#declaring-this-in-a-function. here's how the updated documentation would look: > > ```ts > export const UserRepository = dataSource.getRepository(User).extend({ > findByName(this: Repository, firstName: string, lastName:...

> Makes sense. > > I've found that the trick to flexible queries is a custom SelectQueryBuilder, not a custom Repository. Something like: > > ```ts > export const UserRepository...