I have the following json array in my column:
[
{
"day": 1,
"requests": 23
},
{
"day": 2,
"requests": 5
},
{
"day": 2,
"requests": 9
}
]
and I want the row that has day 1. I already tried to do it with
SELECT * FROM api WHERE usages->'$[*].day' = JSON_ARRAY(1)
but it returns no results.