I think I solved my issue. I can use the map type itself.
p = %{product: %{category: "Fitness & Yoga"}}
Repo.all from r in Review,
where: fragment("review @> ? ", ^p)
Beautiful and simple code.
I think I solved my issue. I can use the map type itself.
p = %{product: %{category: "Fitness & Yoga"}}
Repo.all from r in Review,
where: fragment("review @> ? ", ^p)
Beautiful and simple code.