Latest #ecto-schema Threads Top

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
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
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
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

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
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
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
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
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

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
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
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
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
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
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
vrod
If I have an Ecto schema something like defmodule Something do use Ecto.Schema @primary_key false schema "something" do field ...
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
RenatoRosaFranco
I have the situation a model called contract and a model called parts, a contract can have and be lrelated to many parts i have the fo...
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