Get motivated: Leveling Up With Ectoarrow-up-right
Start with "Programming Phoenix". Part 1 contains chapters specifically related to Ecto which will provide a foundation.
Read the API documentation. Focus on these areas:
Ecto Overviewarrow-up-right
Repoarrow-up-right
Schemaarrow-up-right
Changesetsarrow-up-right
Queryarrow-up-right and Query.APIarrow-up-right
What's new in Ecto 2.0arrow-up-right
Composable Queries with Ectoarrow-up-right
Working with Ecto associations and embedsarrow-up-right
The Ecto Query Library - Lew Parkerarrow-up-right (GitHub Repoarrow-up-right)
Nicholas' Bookmarksarrow-up-right
Ectoarrow-up-right
Ecto, as a database wrapper, is significantly different to ORM such as Rails' ActiveRecord. Dealing with certain data structures are not quite "out-of-the box". Here's a few patterns to deal with these:
Many to many and upsertsarrow-up-right
TODO: Add another Many to many
Modeling Polymorphic Associations in a Relational Databasearrow-up-right
Ecto Docs Polymorphic Associationsarrow-up-right
Google Groupsarrow-up-right
Last updated 5 years ago