This is jsonb value in DB
column config contains {"topicId": [1, 2, 4]}
Now i search for any row with numbers: 1 and 4
select * from table where (config->>'topicId')::jsonb@>'[1,4]'