I have a Schema in Mongoose with all a lot of fields, but all are optional since I want to be able to partially update it. In the end of my business flow, I would like to submit a document and thereby check if all of the fields that are defined in the schema are set.
How would I do that besides manually checking every field on the document?