I have a QueryDataset that needs to be validated before it's committed to the database. The province field must match up with the country field.
I started using a QueryResolver and it worked great. I could call resolverResponse.skip() to cancel the commit and prompt the user for changes.
But now I want to do the same thing at the post stage instead of the database-saving stage. Does anyone know where I could put my validation code?
I started using a QueryResolver and it worked great. I could call resolverResponse.skip() to cancel the commit and prompt the user for changes.
But now I want to do the same thing at the post stage instead of the database-saving stage. Does anyone know where I could put my validation code?