Latest #ecto-schema Threads 
A complete Elixir implementation for parsing Database Markup Language (DBML) schemas and generating Ecto schema files and Ecto migrations...
New
I want to model the following relationship:
A location has zero or one of multiple (currently 7) specifications (each specification is a...
New
In the official docs, it’s written that ideally structs should have less than 32 fields (source here).
Do you go around that limitation?...
New
Hi everyone :waving_hand:
I’m trying to improve the typespecs in my application contexts, but I’m running into dialyzer errors when deal...
New
Hello!
I have a Player schema and each player can have multiple heroes (one-to-many) when trying to insert a Player with associated Hero...
New
I’m pretty sure I’m in XY-Problem land right now, but here goes (I have shortened the code as much as possible to keep it focused).
I ha...
New
Is there a way do define an embedded schema that could be used for embeds_one but still behave as custom Ecto.Type with load, dump, etc. ...
New
I have a – let’s call it ‘Parent’ schema, which embeds_one child schema. Basically a set of largely mutually exclusive key/value pairs. S...
New
Hi, I’m using Ecto embedded schemas for input validation of a JSON API. Basically, I have a Plug.Router implementation that accepts JSON ...
New
I have a Parent model, which embeds_many() children models. Children are then stored in a jsonb column as a List (Array in JSON) of simpl...
New
This Week's Trending
This Month's Trending
This Year's Trending
I have a Parent model, which embeds_many() children models. Children are then stored in a jsonb column as a List (Array in JSON) of simpl...
New
Hi everyone :waving_hand:
I’m trying to improve the typespecs in my application contexts, but I’m running into dialyzer errors when deal...
New
In the official docs, it’s written that ideally structs should have less than 32 fields (source here).
Do you go around that limitation?...
New
A complete Elixir implementation for parsing Database Markup Language (DBML) schemas and generating Ecto schema files and Ecto migrations...
New
I want to model the following relationship:
A location has zero or one of multiple (currently 7) specifications (each specification is a...
New
Last Three Year's Trending
I have an Ecto schema that has a :map type and another field that is a list of integers ({:array, :integer}).
I’m wondering what a good ...
New
Hi, I’m using Ecto embedded schemas for input validation of a JSON API. Basically, I have a Plug.Router implementation that accepts JSON ...
New
I have a data structure that is best represented as List (order matters) rather than Map but each element is a key/value pair so I though...
New
Hey everyone, just joined this forum. I’m new to Elixir and have been working on a side project to learn it. Happy to be here.
I have a ...
New
I have a – let’s call it ‘Parent’ schema, which embeds_one child schema. Basically a set of largely mutually exclusive key/value pairs. S...
New
Hi! I’m continuing my battle (1, 2) against transitive compile-time dependencies on a large code base :slight_smile:
This time I am faci...
New
Hello, i am a newbie in both phoenix and elixir and its been a blast so far. I have a question about ecto schemas and phoenix contexts.
...
New
I have a parent-table and a child-table; they are 1:1 - the “child” could have been a set of fields on the parent but it was better to de...
New
Hello there :slight_smile:
I have a schema A that has a one-to-many relationship with a schema B.
I want to make a query that lists all...
New
I’m pretty sure I’m in XY-Problem land right now, but here goes (I have shortened the code as much as possible to keep it focused).
I ha...
New
Hello!
I have a Player schema and each player can have multiple heroes (one-to-many) when trying to insert a Player with associated Hero...
New
Is there a way do define an embedded schema that could be used for embeds_one but still behave as custom Ecto.Type with load, dump, etc. ...
New
Trending Over Three Years
Hello everyone,
When using the phoenix generators to create a new context (i.e. mix phx.gen.context ContextName SchemaName table_name co...
New
Hello everybody!
I love how Phoenix (with Ecto) allows clean boundaries thanks to context and schemas.
But I just came across something...
New
If SchemaA has_many SchemaB, what is the typical approach to validate if at least one SchemaB is associated to SchemaA?
For instance if ...
New
help me finish this thought:
“I bought this ‘Ecto in Production’ book to help me with … and learn more about …”
The book doesn’t exist ...
New
For loading a JSON into structs using Ecto-Schema I need some custom EctoTypes.
They are all the same: one of a list of atoms. So I trie...
New
Hi all! Going through the Ecto docs and trying to understand something-
Makes sense to me for their suggestion to use a case statement l...
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
Hello!
Trying to fully wrap my head around Ecto when updating a struct value. I know this is super basic and simple; forgive my naivete ...
New
If a use Ecto.Changeset.cast_embed and I call data field with a string, returns this error:
[data: {"is invalid", [validation: :embed, t...
New
Hi,
I am currently having problems trying to update a nested map in a Schema since it doesn’t allow for Access behaviour I can’t just Ke...
New
I find the :defualt option of Ecto.Schema’s :field function a bit confusing.
From my understanding, passing empty string "" to the cast ...
New
If I have an Ecto schema something like
defmodule Something do
use Ecto.Schema
@primary_key false
schema "something" do
field ...
New
I have used phx.gen.auth to create User schema and the Accounts context. The table is the standard: users.
I would like to add one addit...
New
I have a user that has many scopes, and a scope can be had by many users. This relationship has a join table named user_scope However, us...
New
I am going through some code base(big project) and and i saw the code to create schema in schema directory
def register_fcm_schema() d...
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
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #elixirconf
- #discussion
- #javascript
- #podcasts
- #code-sync
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #api
- #processes
- #forms
- #metaprogramming
- #security
- #performance
- #hex







