Getting error in liveview: "errors were found at the given arguments: * 1st argument: not an atom"

The Ecto - Getting Started Guide is the place to start.

Also, download The Little Ecto Cookbook – it’s free and will expand on the Getting Started Guide.

If you’re interested in a book, Programming Ecto is the way to go. Look for the discount code in the first post of that forum thread.

Any time spent learning Ecto will be time well spent. :slight_smile:

3 Likes

Thank you!

I also had this error. Solved it thanks to this post.

This fails:

q = from u in User,
     select: u.id
 Repo.query(q)

This works:

q = from u in User,
     select: u.id
 Repo.all(q)