I’m trying to build
has_one relation based on
I know that I can use
where: ... with
has_one/has_many but it seems like it doesn’t support comparison other than equality. In my case, I need to compare dates with
Any ideas on how can I handle it?
Here is the example code (the three dots is the place where I’m confused):
defmodule A do has_one :b, where: [valid_from: ..., valid_until: ...] end