In AR this is so simple
@articles = current_user.articles
How to do in Ecto?
def index(conn, _params) do current_user = conn.assigns.current_user meetings = Listings.list_meetings() #works..sure but I only want current_user ones..
Tried all what I could find in goo, but no success!
#meetings = Repo.get_by!(Meeting, user_id: current_user.id) #nope, but anyway …is this getting all or only one entry?
=> Enumerable not implemented for
meetings = Repo.all(Meeting) |> where(user_id: current_user.id)
=> MeetingController.init/1 is undefined.
some help would be great…thanks