Open nikitakoschelenko opened 3 years ago
I'll look into the issue as soon as I can.
Question though, why are you using PerchQueryBuilder for this at all if you are going to append
.select()
.where({ id: family.id })
.getOne()
to the query? You are removing all previous selections and joins made by perch and rendering any where clauses added by the package completely useless. If that is all that you need from the resolver then this package isn't necessary
If your desire is to force the query into selection of a single record, try appending
.andWhere({ id: family.id })
.getOne()
If your desire is to force the query into selection of a single record, try appending
.andWhere({ id: family.id }) .getOne()
Not working :(
return PerchQueryBuilder.generateQueryBuilder<Family>(
this.familiesRepository,
info
)
.andWhere({ id: family.id })
.getOne();
Fixed in PR #17
Same in version 1.3.2
@wesleyyoung reopen please
@wesleyyoung hi, I don't know is it only me or not, but because of that PR, the pagination & sorting do not work anymore
Im using PerchQueryBuilder.find()
confirmed: I tried to comment it out, and it worked
Describe the bug My code is:
In console I'm getting an error:
In query it's working perfectly.