This is my order.ex
schema "orders" do
field :counts, :integer
field :status, :string
embeds_many :line_items, LineItem, on_replace: :delete
field :user_id, :integer
field :message_type, :string
field :total, :decimal
field :message, :string
field :media_url, :string
belongs_to :users, User, define_field: false
timestamps()
end
and line_item. ex
embedded_schema do
field :person_id, :integer
field :name, :string
field :phone_number, :string
end
I want to find order by phone_number field in LineItem that embedded in order schema.
how do I make a query for this?