Hi @Kamal_Setia, welcome to the community .
If you want to ensure that the documents that are getting inserted and updated follow a particular structure(data type and value ranges), you can consider implementing Schema Validation.
By specifying the JSON Schema for a particular collection, you can implement validation rules in a human-readable format.
title: "Certificate Validation",
required: [ "certificationNumber", "name", "id"],
description: "'Certification Number must be in the range of 10000 to 100000"
description: "name must be a string"
description: "'id must be greater than 0"
Learn about the available keywords for JSON schema.
If you have any doubts, please feel free to reach out to us.
Thanks and Regards.