when query read=true, i can use: ```elixir read == true -> queryable |> join(:inner, [content, f, c], viewers in assoc(content, :viewers)) |> where([content, f, c, viewers], viewers.user_id == ^user.id) ``` but came to read=false, this is not work as except ```elixir read == true -> queryable |> join(:inner, [content, f, c], viewers in assoc(content, :viewers)) |> where([content, f, c, viewers], viewers.user_id != ^user.id) ``` because the `viewers` assoc only have records of viewed user, the unviewed user is not in that table left_join is not working either, need help...
when query read=true, i can use:
but came to read=false, this is not work as except
because the
viewersassoc only have records of viewed user, the unviewed user is not in that tableleft_join is not working either, need help...