Hello, my failure condition is "true"; why the success events are triggered and not the failure events? did i make a mistake? thank you...
Because the query still completes.... what are you checking the form for? Missing information? Or, if the login fails?
i search if the query searching for a row matching username and login
i wanted it to fail if 0 row of my users database is returned.
Anyway, chatgpt wrote me a javascript code to program what happens in case of failure/successful login sometimes it helps
Hey! It looks like you may have already solved this but in case anyone else stumbles across this I just want to mention here that you'll want to reference {{ data }}
in the failure condition instead of {{ yourQuery.data }}
so that it refers to the most recently fetched data.
Hopefully that helps!