Check if the field exists before decryption
Check if the field exists before decryption

Sometimes the field could be marked to not be retrieved, in that case, the decrypt function will fail because because the field is undefined.
victorparmar/mongoose-field-encryption