I tried to combine postgres_output value with postgres_rewrite no_rows =404 to achieve returning the single value that is returned by postgres or a 404 error when nothing is returned. However, this results in a server error 500 because postgres_output value expects exactly 1 value but received 0.
I tried to combine
postgres_output value
withpostgres_rewrite no_rows =404
to achieve returning the single value that is returned by postgres or a 404 error when nothing is returned. However, this results in a server error 500 becausepostgres_output value
expects exactly 1 value but received 0.