Open AdrianC2000 opened 2 years ago
It depends on how you structure your data inside Java and how you implement parsing the attribute.
Hello all do you have an example on how to structure the data in order to have rsql work on json column
So we have any update on this or idea on how we implement this feature
One approach that I used in a project is to define a custom operator:
=k=key
=kv=(key, value)
Then JPA + PostgreSQL requires some customization so that JPA "knows" the specific syntax of Postgres. Another way is to use MongoDB which has more support for the dot annotation.
I would like to achieve something like this:
select * from events where params->>'name' = 'name123';
Params is the column of json type and has in it the field 'name'. So the goal is to filter by the fields that are present in the json. Is it possible with the usage of rsql parser?