randomcoding/PartsDbWebApp — Issue #38: Should adding a record that has a match update the matched record or be forceable
Author: randomcoder
Created: 2012-02-05 09:32:31+00:00
State: open

The general pattern for mongo record adds is:
1. Check for a match (Object Id first, then field content)
1. If there is a match simply return the matched record (the match method returns an `Option[T]`
1. If there is not match then add the record.

Obviously, if the match is sufficient, but partial then the add will fail and cannot be performed.

Therefore the question is:

If there is a match in the add method, then should the matched record be updated (via the modify method) or should we be able to force the addition of a new record via a flag.