I have a postgesql table test_1
as follows :
|| ID || container_id || product_id ||
-----------------------------------------------------------------------------
|| 1 || 1 || 1 ||
-----------------------------------------------------------------------------
|| 2 || 1 || 2 ||
-----------------------------------------------------------------------------
|| 3 || 2 || 1 ||
-----------------------------------------------------------------------------
|| 4 || 2 || 2 ||
-----------------------------------------------------------------------------
I need to select the query :
select * from test_1 where (container_id,product_id) in ((1,1),(1,2),(2,1));
This should return all rows with ids from 1 to 3.
Is there a postgREST operator that can select the needed query?
My url so far:
http://localhost:8080/test_1?&product_id=in.(1,2)&container_id=in.(1,2)
This obviously returns all values as it is not correct.