Latest #associations Threads 
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
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
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
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
I have a Role like this in DB. It is attached to both a organization and a employee. But I cannot get both fields organization_id &&a...
New
Hello all,
I’m trying to implement oauth server and I’m not sure how to implement inserting token into database. For simplicity I have t...
New
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
Hey there, this is my first post in here! I’m “just” in need of a little help with changesets and associations.
I have a changeset I bui...
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
Hello :wave:,
I’m trying to define a one-to-many association where the child’s foreign key is contained inside a jsonb field.
I have a ...
New
This Week's Trending
This Month's Trending
This Year's Trending
Last Three Year's Trending
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
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
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
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
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
I have a query like:
Alarms
|> preload(:event)
|> order_by([{:desc, :event[:id]}])
|> Repo.all()
You can see what I am tryi...
New
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
Hello everyone!
Something happened at work today and it kinda got me off-guard because I was expecting different behavior from Ecto. Wha...
New
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
I’ve got an existing database with an interesting permissions model. The permissions schema are based on a php library called Spatie Perm...
New
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
Hi,
It looks like Ecto prevents, by default, to change an association because on_update is :raiseby default.
I naively changed my belon...
New
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
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
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
Hey there, this is my first post in here! I’m “just” in need of a little help with changesets and associations.
I have a changeset I bui...
New
Say I have the following models
import Ecto.Changeset
import Ecto.Schema
defmodule Parent do
schema "parents" do
has_one :child, ...
New
Say I have the following schemas:
defmodule Articles do
schema "articles" do
field(:name, :string)
embeds_one(:foo, Foo)
end...
New
Say user input params (from a form, GraphQL document, etc.) look like below (let’s say a User has many Articles):
%{
"name" => "Joh...
New
Hi guys just wondering is it possible to preload but with a condition from the main query
Let’s say I have a model named Post. A Post ha...
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







