I want to create a table with a column containing jsonb data-type.
What would be the proper way to index and query a int value in an array?
Entry:
{
"list": [
{
"type": "FOO",
"value": 1000
},
{
"type": "BAR",
"value": 200
}
]
}
2 different queries, I want to find all entries which contain a list-item,
- Type = 'FOO' AND value > 500
- value > 100