This would allow easier update to the system but would be difficult to change and would cause longer lookups. An alternative would be to create the model system and have the key property be a virtual of the _id property. This does means if a database is reset that we would have to be careful since the id/key would reset where as in the current method the id would continue to persist.
This would allow easier update to the system but would be difficult to change and would cause longer lookups. An alternative would be to create the model system and have the key property be a virtual of the _id property. This does means if a database is reset that we would have to be careful since the id/key would reset where as in the current method the id would continue to persist.