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 need to layer the turbo-ecto query with a base-query:
def list_paginated_reviews(params, user) do
Review
|> with_friends(user)
|> preload(...)
|> Turbo.Ecto.turbo(params)
end
def with_friends(review, user) do
review
|> join(:inner, [r], uf in UserFriend, on: uf.user_id == ^user.id)
...
Trying to filter by category-name:
from r0 in Review,
join: u1 in UserFriend,
on: u1.user_id == ^2,
join: c2 in Category,
on: c2.id == r0.category_id,
where: u1.name == ^"Cool stuff",
order_by: [desc: r0.inserted_at],
...
Am I doing something wrong?
The text was updated successfully, but these errors were encountered:
I need to layer the turbo-ecto query with a base-query:
Trying to filter by category-name:
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: