Reputation: 408
I have PostgreSQL database with JSON type field named "data" that has following content structure:
{
"requestData" : {
"url": "some url"
"body": {
"page_id": 12
}
}
}
I try to make findAll
query request with filter by page_id
using Sequelize, but don't get some results.
The question is: could I search by nested field in JSON type, or only in JSONB type? And how?
Upvotes: 17
Views: 20651