How to get data as a Map<String, List<String>> using a single query?
I have table filters:
|id|filter_name|filter_code| keyword|
------------------------------------
|1 | banana | 237 |category|
|2 | apple | 250 |category|
|3 | water | 320 |category|
|4 | owner | 4410 | param |
|5 | place | 5389 | param |
So, I need to get keyword like a key and filter_code like a list of values.
Income data: id and keyword
Edited: In the output, I need to get Map<keyword, List<filter_code>>. All params are strings