I have a JSONB field value:
{
"status":200,
"response":{
"page":1,
"limit":10,
"total":4,
"orders":[
{
"id":40201
},
{
"id":40111
}
]
}
}
How do I query for the orders array object with id=40201?
Im trying to query for all rows with response->orders->[id: 40201]
the_column -> 'response' -> 'orders'not sure what you mean with "orders array with id = ..." there are multiple IDs in the array. What exactly is the output you want?