This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

Last Three Year's Trending Top

Owens
I couldn’t find an answer to this from searching so thought I would make a post about it. I’m trying to get a list of Users who have not...
New
sharkmyster
I’m working on a game app that has an answers table and a categories table. This relationship is many to many. The admins for the app ca...
New
patrickdavey
I’m learning Ecto, and having issues trying to update following the docs. In my repo User has_many UserOrganisations, and there’s boolea...
New
acrolink
Hi, Table A: Dishes: id and name fields. Table B: Users: with a field called favorite_dishes holding an array of id’s (of dishes). I...
New
1stSolo
Hello. I have a Parent Absinthe & Ecto schemas and there’s an embedded child object associated to it (1:1, so the fully inflated obj...
New
brettbeatty
Central to my app is the Account. I have a lot of schemas that belongs_to Account. I like including corresponding has_one/has_many on Acc...
New

Trending Over Three Years Top

mmport80
I have a query like: Alarms |> preload(:event) |> order_by([{:desc, :event[:id]}]) |> Repo.all() You can see what I am tryi...
New
omin
I have a transaction that updates upto 3 tables and it became long and ugly. I’d love to learn more to be able to write cleaner and more ...
New
stratigos
Hello! I need to update a dynamically built query such that items with photos order before items without photos. A Photo belongs to an It...
New
thiagomajesk
Hello everyone! Something happened at work today and it kinda got me off-guard because I was expecting different behavior from Ecto. Wha...
New
Exadra37
I am trying to learn the basics of Ecto from Elixir School and I see in their examples that using this syntax Repo.all(from m in Movie, p...
New
tao
I’m setting up my schemas and migrations in a Phoenix app. I’m trying to create a many-to-many relation from a table called instances to ...
New
Nullstrike
How to pass a changeset in phoenix form? I use put_assoc function as I get the user struct from the cureent user that are assign to sess...
New
sudochop
I’ve got an existing database with an interesting permissions model. The permissions schema are based on a php library called Spatie Perm...
New
Softknobs
Hi, It looks like Ecto prevents, by default, to change an association because on_update is :raiseby default. I naively changed my belon...
New
freewebwithme
Hi! I need your help! I am trying to understand tagging system(like post has tags). But I don’t understand very well. For example, User...
New
trenton
Hello folks, I am currently trying to take an object and return some data on it via an endpoint. This object, an account, has many accou...
New
vadimshvetsov
I’m quite new to Elixir and Phonex but I felt in love with it so much. After books (Programming Elixir |> 1.6 and Programming Phoenix ...
New
wolfiton
Hi everyone, So the funny things is that I get no associations even though I specified the relationship in my migrations and my schema. ...
New
leon_cruz
Hello there, I’m getting some problems in validate associations in Ecto. I have two schemas, Video and Playlist (a playlist can have many...
New
tnederlof
I have an Event that has_one Number (the schema and migrations are shown simplified below). I can use put_assoc when inserting a number t...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement