checkIfDefault

Checks whether the instance of 'Type' has the default value on 'field' if it does and isn't marked with the MongoKeep UDA does nothing, else appends that field to the BSON. In case the field is a struct or array, it checks recursively.

bool
checkIfDefault
(
string field
Type
)

Meta