Problem
Let's go straight to the problem. Suppose you have a Post schema, defined as follows:
# lib/my_app/post.ex
defmodule MyApp.P...
For further actions, you may consider blocking this person and/or reporting abuse
Great work!
Just I think it is necessary in the definition of the embedded schema to use
embedded_schemainstead:schema "locations":Thanks for pointing that out 👍
Actually the code will still work, but apparently your solution is actually more conventional way to do this (as mentioned in Ecto docs) - I'm editing the post with your solution.