Latest #embedded_schema Threads Top

PaleWatcher
I have a schema like this: embeds_one :product_profile, ProductProfile, on_replace: :delete, load_in_query: false I use product_profile...
New
marcandre
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
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
KP123
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
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
xlive
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
KP123
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
halostatue
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
artem
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
danj
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 Top

This Month's Trending Top

This Year's Trending Top

mathieuprog
Hello :waving_hand: I published a library that brings support for polymorphic/dynamic embeds in Ecto. Ecto’s embeds_one macro requires ...
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
marcandre
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
PaleWatcher
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 Top

onomated
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
artem
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
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
danj
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
halostatue
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
scoop
TL;DR: How do you practically use the embedded schemas when implementing single table inheritance in a Phoenix application? There are s...
New
KP123
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
xlive
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
KP123
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 Top

CheersThankYou
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
krut
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
tankh7
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
dorian-marchal
With these modules: defmodule Foo do use Ecto.Schema import Ecto.Changeset schema "foo" do field(:name, :string, null: false)...
New
tanweerdev
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
thojanssens1
Say I have the following schemas: defmodule Articles do schema "articles" do field(:name, :string) embeds_one(:foo, Foo) end...
New
silverdr
This is an example from one of the very useful “FullstackPhoenix” tutorials, namely: # lib/tutorial/shop/data.ex defmodule Tutorial.Sho...
New
tankh7
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
nikokozak
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
KiKi
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
drapermd
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
Sanjibukai
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
fschuindt
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
chrisdel101
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
Sebb
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

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement