When I filter on
query{
flowBlocks(filter:{
where: {
block:{
title:{
equalTo: "Wat wil je reinigen?"
}
}
}
}){
id
flow{
title
}
block{
id
title
organization{
id
}
}
}
}
It results in the following query:
SELECT *
FROM `flow_block`
WHERE `flow_block`.`organization_id` = 1
AND ( EXISTS(SELECT 1
FROM `block`
WHERE ( title = 'Wat wil je reinigen?' )) );
This results in all almost all flowblocks returning while it should only return flowblocks which contain a block with this title so the query should be:
SELECT *
FROM `flow_block`
WHERE `flow_block`.`organization_id` = 1
AND ( EXISTS(SELECT 1
FROM `block`
WHERE ( title = 'Wat wil je reinigen?' )
AND `flow_block`.`block_id` = `block`.`id`) );
When I filter on
It results in the following query:
This results in all almost all flowblocks returning while it should only return flowblocks which contain a block with this title so the query should be: