I’m assuming this is for similar reasons as to why you can’t use nil
for embeds_many
—which came up again recently—that embeds are meant to be treated the same as regular relations. I think your only option if you want to keep using Ecto is to create your own type. Otherwise you could check out Drops which is a more general schema library.
1 Like