I would like to check if a number is in a specific range dynamically. For example i have a table like:
id | value | age_range |
---|---|---|
1 | a | 3-7 |
2 | b | 7-10 |
3 | c | 3-7 |
4 | d | 0-3 |
if the age of the user is 5, i would like to retrieve all rows where age_range is 3-7 without writing the range in the where clause query. For example something like:
table (where: { 5 in age_range })...