Trigger success or fail based on the sql query response [db query]

Hi,
I have a simple question. Say I have a simple query block with select name from mydb where id=1, now as you may guess it will return one response or empty response.

I want to trigger success if it gives me data and trigger fail if it's empty. How should I do it.
Thanks.

the image shows empty response but success is triggered I want this to trigger fail options

Under the response tab, you can achieve this:

1 Like

thanks man