Latest #ecto-schema Threads Top

saleyn
A complete Elixir implementation for parsing Database Markup Language (DBML) schemas and generating Ecto schema files and Ecto migrations...
New
carlosfritz
I want to model the following relationship: A location has zero or one of multiple (currently 7) specifications (each specification is a...
New
ryanzidago
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
Gigitsu
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
syepesc
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
tozz
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
silverdr
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
silverdr
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
bvobart
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
silverdr
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 Top

This Month's Trending Top

This Year's Trending Top

silverdr
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
Gigitsu
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
ryanzidago
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
saleyn
A complete Elixir implementation for parsing Database Markup Language (DBML) schemas and generating Ecto schema files and Ecto migrations...
New
carlosfritz
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 Top

BillBryson
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
bvobart
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
silverdr
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
gutomotta
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
silverdr
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
gmile
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
msyavuz
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
1stSolo
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
JasterV
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
tozz
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
syepesc
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
silverdr
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 Top

jonbirke0927
Hello everyone, When using the phoenix generators to create a new context (i.e. mix phx.gen.context ContextName SchemaName table_name co...
New
Sanjibukai
Hello everybody! I love how Phoenix (with Ecto) allows clean boundaries thanks to context and schemas. But I just came across something...
New
mekusigjinn
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
dbern
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
Sebb
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
yeroc
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
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
yeroc
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
joaothallis
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
EddTally
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
jmurphyweb
I find the :defualt option of Ecto.Schema’s :field function a bit confusing. From my understanding, passing empty string "" to the cast ...
New
vrod
If I have an Ecto schema something like defmodule Something do use Ecto.Schema @primary_key false schema "something" do field ...
New
DavidM
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
hawkyre
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
bishen28
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
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement