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
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
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
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
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
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
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’m building an Ecto schema to cast a JSON into a struct.
The data looks like this:
%{
name: "Bob",
...
body_parts: [
%{id: ...
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
I’m trying to use library trans.
This my Schema module:
defmodule Hi.Msg do
use Ecto.Schema
use Trans, translates: [:msg],
defa...
New
Hello! I am trying to create a few different embedded schemas for storing JSON in a jsonb column in postgres using ecto. The problem is t...
New
I am wondering if there is an idiomatic way to discard invalid embed entries during casting, i.e. when Ecto.Changeset.cast_embed/3 is cal...
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:
Sub Categories:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #ash-questions
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #discussion
- #javascript
- #elixirconf
- #library
- #oban-questions
- #dialyzer
- #docker
- #onsite
- #authentication
- #podcasts
- #full-time-contract
- #umbrella
- #code-sync
- #ecto-query
- #phoenix_html
- #iex
- #graphql
- #genstage
- #elixir-ls
- #nerves-questions
- #podcasts-by-brainlid
- #supervisor
- #websockets
- #distillery
- #advent-of-code
- #blog-post
- #livebook-questions
- #processes
- #forms
- #api
- #metaprogramming







