polymorphic_embed
polymorphic_embed copied to clipboard
Polymorphic embeds in Ecto
Hello. I'm trying to tidy up some code for a SQL query builder. Presently, I manually assign the inputs' `name` and `id` fields and save it all as JSONB. How...
I currently have a schema with this shape: ``` schema "ClientInstance" do field :ext_ref, Ecto.UUID field :notes, :string embeds_one :query, EmbeddedSchema.ClientInstance timestamps() end ``` with the embedded schema as follows:...
I was working on a library that uses polymorphic embeds. Since it's a library that is used by applications, it cannot know all the polymorphic types ahead of time. This...
First of all, thanks for the amazing work on this library! :smile: I think I stepped into a tiny bug when it comes to the `types` function, which I'm heavily...
I've been using this lib for a long time, but just ran across use cases as it's the first time I try `polymorphic_embeds_many`. It seems to me that there's missing...
Hi there, especially @mathieuprog. First thanks for this great Library, it has helped us a lot and is a joy to use ❤️ It seems though that you might not...
In order for this code to work it needs to be `reminder_form`
When using `polymorphic_embeds_one` or `polymorphic_embeds_many` we create compile-time dependencies from the parent schema to the embedded schemas. For example, let's say we have the following code: ```elixir # lib/article.ex defmodule...
resolves #63 To cover all cases, I had to add `channel2` and `channel3` fields to the reminder schema. - `channel`: `identity_by_fields` and `type_field` - `channel2`: none of these options -...