-
Entradas recientes
- My GitHub contributions over the years abril 25, 2019
- Continuous Deployment of Mobile Software at Facebook abril 22, 2019
- Today's workout abril 22, 2019
- Writing Code Long Before You Need It abril 17, 2019
- One more argument for using descriptive variable names abril 16, 2019
- 40% down in 15 minutes abril 16, 2019
- First impressions on the Kindle Paperwhite abril 15, 2019
- Breaking the #inout habit abril 15, 2019
- Moving my journal to Swanros.com abril 15, 2019
- Handling routes from an API in a type-safe way with Swift marzo 27, 2018
- Available for work febrero 26, 2018
- guards in Elixir 1.6 enero 25, 2018
- Experimenting with inherited tables in Ecto septiembre 27, 2017
- Becoming a Better iOS Developer Through Tooling: My AltConf 2017 talk agosto 14, 2017
- On iOS interview exercises julio 25, 2017
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
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