Project

General

Profile

Idea #15781

Updated by Peter Amstutz over 4 years ago

https://www.postgresql.org/docs/9.5/functions-json.html 

 <pre> 
 arvados_development=# select '{"a":["foo","bar"]}'::jsonb @> '{"a":["bar"]}'::jsonb; 
  ?column?  
 ---------- 
  t 
 </pre> 

 So jsonb subset match works if you know the key and are looking for an exact match on the value. 

 It looks like an arvados filter of @[["properties.a", "=", ["bar"]]@ might already work by since it uses @@>@ in the implementation. 

Back