Latest #embedded_schema Threads 
I have a schema like this:
embeds_one :product_profile, ProductProfile, on_replace: :delete, load_in_query: false
I use product_profile...
New
Custom types do not use load/dump when embedded.
Then may use dump if they define embed_as to return :dump, but there is no way to use l...
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
Using PolymorphicEmbed v4.1.1
I get the error: module PolymorphicEmbed.HTML.Form is not loaded and could not be found
When attempting t...
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
Hey there!
We are using Ecto to parse some API response (it works pretty well!).
We want this response to be converted to a struct, so ...
New
Context: I’m building an Echo schema that embeds_one schema which itself contains an embeds_many field. I need to allow users to add and ...
New
If I am using cast_embed/3, how do I clear an embeds_many entry?
I have a table flows that has a options JSONB column
CREATE TABLE flow...
New
I am still new to elixir, so once in a while getting confused with the reasoning for basic stuff
Context
I am building a small service ...
New
New! Parse (and generate) XML with a DSL that is built on top of Ecto.Schema. Makes handling XML easy if you want structs out of XML inpu...
New
This Week's Trending
This Month's Trending
This Year's Trending
Hello :waving_hand:
I published a library that brings support for polymorphic/dynamic embeds in Ecto.
Ecto’s embeds_one macro requires ...
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
Custom types do not use load/dump when embedded.
Then may use dump if they define embed_as to return :dump, but there is no way to use l...
New
I have a schema like this:
embeds_one :product_profile, ProductProfile, on_replace: :delete, load_in_query: false
I use product_profile...
New
Last Three Year's Trending
I’m in the process of migrating a codebase and accompanying data to Elixir/Ecto, and I notice that my embedded schema (backed by jsonb co...
New
I am still new to elixir, so once in a while getting confused with the reasoning for basic stuff
Context
I am building a small service ...
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
New! Parse (and generate) XML with a DSL that is built on top of Ecto.Schema. Makes handling XML easy if you want structs out of XML inpu...
New
If I am using cast_embed/3, how do I clear an embeds_many entry?
I have a table flows that has a options JSONB column
CREATE TABLE flow...
New
TL;DR: How do you practically use the embedded schemas when implementing single table inheritance in a Phoenix application?
There are s...
New
Context: I’m building an Echo schema that embeds_one schema which itself contains an embeds_many field. I need to allow users to add and ...
New
Hey there!
We are using Ecto to parse some API response (it works pretty well!).
We want this response to be converted to a struct, so ...
New
Using PolymorphicEmbed v4.1.1
I get the error: module PolymorphicEmbed.HTML.Form is not loaded and could not be found
When attempting t...
New
Trending Over Three Years
I have an embedded schema, and I noticed that it was always writing to the DB, even when it wasn’t updated from its default value [].
Ch...
New
I am writing an API integration that uses embedded schemas to cast response data before it is used internally. The id fields in the respo...
New
So this is my first time using embedded schema and I’m having an issue finding information to help me work through how to handle what I n...
New
With these modules:
defmodule Foo do
use Ecto.Schema
import Ecto.Changeset
schema "foo" do
field(:name, :string, null: false)...
New
I have a json/map field in database which can actually holds 3 kinds of objects based on type field define in table
so structure is like...
New
Say I have the following schemas:
defmodule Articles do
schema "articles" do
field(:name, :string)
embeds_one(:foo, Foo)
end...
New
This is an example from one of the very useful “FullstackPhoenix” tutorials, namely:
# lib/tutorial/shop/data.ex
defmodule Tutorial.Sho...
New
I have a schema with an embedded schema.
When a company is first created I want to give them defaults for this schema and embedded schem...
New
Hi all - I might have dug my own grave by going down this path, but now I’m just curious… What is the best way to re-cast data after deco...
New
I’m working on a small project where I’m trying to learn how to use embedded schemas. So I have albums and tracks. Album can have many tr...
New
Hello there!
I’m having a devil of a time getting a dynamic embedded schema to save in postgres.
So I started here, basically
https://...
New
Hello everyone,
TL;DR: How to get a changeset with only embeds data?
I have some trouble understanding how cast_embed should work..
Le...
New
Hi there, folks. I’m struggling with this issue for quite some time… It’s with Ecto embedded schemas…
Consider the following:
Orders em...
New
I’ve spent several days trying to make my this work, connecting my tables using Ecto Association Guide – Ecto v2.2.11
I think Many-to-m...
New
I’m building an Ecto schema to cast a JSON into a struct.
The data looks like this:
%{
name: "Bob",
...
body_parts: [
%{id: ...
New
- Follow
- Join
- Shape
the conversation
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
- #elixirconf
- #exunit
- #discussion
- #javascript
- #code-sync
- #podcasts
- #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
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








