Could not infer polymorphic embed on the README example
Closed this issue · 2 comments
bartosjiri commented
Hey all, thank you for the work on this library!
I've been trying to implement it using the README example, but without any success so far, always resulting in the following error:
- could not infer polymorphic embed from data %{
<embedded-data>
}
I have created a minimum reproduction repository, explaining the setup and individual reproduction steps, available here:
Note: I am fairly new to Elixir/Phoenix, so there might be something very obvious that I am missing...
Thank you for your time in advance!
mathieuprog commented
there's missing a type field in the map no?
bartosjiri commented
there's missing a type field in the map no?
Indeed!
Silly me, thanks for the quick response ♥