Latest #many-to-many-association Threads 
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
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
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
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
defmodule App.Newsletters.Newsletter do
use App.Schema
import Ecto.Changeset
schema "newsletters" do
field :frequency, :string...
New
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
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
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
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
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
This Month's Trending
This Year's Trending
Last Three Year's Trending
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
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
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
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
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
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
Context:
A customer_lead can be associated to many service_category. A service_category can be associated to many customer_leads.
custom...
New
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
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
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
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
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
defmodule App.Newsletters.Newsletter do
use App.Schema
import Ecto.Changeset
schema "newsletters" do
field :frequency, :string...
New
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
Latest on Elixir Forum
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Manning Publications
45% off any item
ElixirCasts
10% off for life
The Pragmatic Studio
20% off any course
AppSignal
10% off for 12 months
Honeybadger
10% off for 12 months
Simply use coupon code "devtalk.com" or "elixirforum" at checkout!
Filter by Type:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #ash-questions
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #discussion
- #javascript
- #elixirconf
- #library
- #oban-questions
- #dialyzer
- #docker
- #onsite
- #authentication
- #podcasts
- #full-time-contract
- #umbrella
- #code-sync
- #ecto-query
- #phoenix_html
- #iex
- #graphql
- #genstage
- #elixir-ls
- #nerves-questions
- #podcasts-by-brainlid
- #supervisor
- #websockets
- #distillery
- #advent-of-code
- #blog-post
- #livebook-questions
- #processes
- #forms
- #api
- #metaprogramming







