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
Then, it gives me the count for all experiences, not just experiences related to that relation.
The SQL generated is select count(*) from "experiences but it should be something like select count(*) from "experiences" inner join "customers" on "customers"."id" = "experiences"."customer_id" where "customers"."location_id" = 2;
Thanks!
The text was updated successfully, but these errors were encountered:
e.g.,
I can query by a hasManyThrough relation:
But if I try to count like so:
Then, it gives me the count for all experiences, not just experiences related to that relation.
The SQL generated is
select count(*) from "experiences
but it should be something likeselect count(*) from "experiences" inner join "customers" on "customers"."id" = "experiences"."customer_id" where "customers"."location_id" = 2;
Thanks!
The text was updated successfully, but these errors were encountered: