Latest #many-to-many-association Threads Top

bottlenecked
Hi all, I’m thinking about creating a many-to-many association on one of my schemas like this many_to_many :active_foos, MyApp.Foo, ...
New
WammKD
So I have a table of ItemA which has a many-to-many mapping to ItemB. In the changeset of ItemA, the ItemB association gets preloaded an...
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
azrael
Hi, I am working on a first elixir project and I am struggling quite a lot with the many_to_many association. I have got it sort-of work...
New
theshapguy
defmodule App.Newsletters.Newsletter do use App.Schema import Ecto.Changeset schema "newsletters" do field :frequency, :string...
New
silverdr
In a many-to-many relationship, let’s say users and chatrooms for a good example, there’s a join table users_chatrooms and appropriate Ec...
New
josefrichter
Hi, is there a way to have named association, please? Akin to Rails/ActiveRecord as: option. Something like this: many_to_many :users, a...
New
f0rest8
Hi everyone, Just wanted to say that the new Self-referencing many to many guide is now up on the official Hex docs (at least I just not...
New
njwest
Hiya, we’re designing PostgreSQL schemas for an app that has Users, and the user has Things of different types as well as Affinities for ...
New
maz
I have Users and Orgs. Users can belong to multiple Orgs and Orgs can have many users: defmodule Elijah.Schema.User do use Ecto.Schema...
New

This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

Last Three Year's Trending Top

f0rest8
Hi everyone, Just wanted to say that the new Self-referencing many to many guide is now up on the official Hex docs (at least I just 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
WammKD
So I have a table of ItemA which has a many-to-many mapping to ItemB. In the changeset of ItemA, the ItemB association gets preloaded an...
New
bottlenecked
Hi all, I’m thinking about creating a many-to-many association on one of my schemas like this many_to_many :active_foos, MyApp.Foo, ...
New

Trending Over Three Years Top

silverdr
In a many-to-many relationship, let’s say users and chatrooms for a good example, there’s a join table users_chatrooms and appropriate Ec...
New
maz
I have Users and Orgs. Users can belong to multiple Orgs and Orgs can have many users: defmodule Elijah.Schema.User do use Ecto.Schema...
New
venomnert
Context: A customer_lead can be associated to many service_category. A service_category can be associated to many customer_leads. custom...
New
njwest
Hiya, we’re designing PostgreSQL schemas for an app that has Users, and the user has Things of different types as well as Affinities for ...
New
JosipSylo
By reading through previous questions and issues I converted my schemas from using a “many_to_many” to “has_many” and “belongs_to” in ord...
New
tnederlof
EDIT ** The code now works after some help I started a thread a few days ago with some general questions and since I am now focused and ...
New
azrael
Hi, I am working on a first elixir project and I am struggling quite a lot with the many_to_many association. I have got it sort-of work...
New
voger
I am writing a twitter clone project to see how it is done. I want to be able to create mentions to users from the post. I have these sch...
New
theshapguy
defmodule App.Newsletters.Newsletter do use App.Schema import Ecto.Changeset schema "newsletters" do field :frequency, :string...
New
josefrichter
Hi, is there a way to have named association, please? Akin to Rails/ActiveRecord as: option. Something like this: many_to_many :users, a...
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