I am trying to make a service (query) fail if the where clause is undefined or some other fail case. What is the best way to make a service fail? I want to avoid error 404 or 5xx get requests from populating the console.
I am trying to make a service (query) fail if the where clause is undefined or some other fail case. What is the best way to make a service fail? I want to avoid error 404 or 5xx get requests from populating the console.
like... in the where clause; what can I return to make the service fail, so that I can run an event after this service fails...? elegantly (silently)
Hello!
You can try to make it with JavaScript - catch the 'where' response value and make some notification inside the app.