You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the latest 0.0.9-alpha.2 version. I found that this innerJoinAndSelect/leftJoinAndSelect method no longer works:
//If we want to load post with specific of its categories:
const posts = await connection
.getRepository(Post)
.createQueryBuilder("post")
.innerJoinAndSelect("post.categories", "category", "category.name=:myCategory", { myCategory: "world" })
.getMany();
I'm getting this error
Error:(49, 95) TS2345:Argument of type '{ myCategory: string; }' is not assignable to parameter of type 'JoinOptions'.
Object literal may only specify known properties, and 'myCategory' does not exist in type 'JoinOptions'.
Activity
pleerock commentedon Feb 2, 2017
Use
setParameterinstead. Using extra parameters in joins are deprecated, because in the future there will be parameters related to join itself.