Archivo mensual: julio 2016

Filtering has_many relationships in Ecto

This is sot-of a follow up to my last post, about self-referencing many_to_many relationships using Ecto. I find myself in a scenario where I have a User: # User model defmodule MyApp.User do use MyApp.Web, :model alias MyApp.Contact schema “users” … Sigue leyendo

Publicado en Uncategorized | Etiquetado , , , | Dejar un comentario

Self-referencing many-to-many relationships using Ecto

EDIT: I’ve changed the last section of this article to reflect my findings in actually using this in production. I’ve decided to do the backend for a new app I’m creating myself, using Elixir/Phoenix. I’ve been learning Elixir for the … Sigue leyendo

Publicado en Uncategorized | Dejar un comentario