I have Table in postgresql with two columns id(int) and data(jsonb)
id | data
---------
int | jsonb
data has undefined format for example
{ id: 0, name: "Sergey", age: 23} or {vehicle: "motorcycle", max_speed: 250, brand: "honda"}
I need to write qraphQl query where response contains data list where find key word in any jsonb fields for example:
query {
declarations(where: {data: {_ilike: "Sergey"}}) {
id
data
}
}
But at this case I have error: "message": "field '_ilike' not found in type: 'jsonb_comparison_exp'"