MongoDB assumes that a NULL value in the database is some "empty"
value. So a query that does + 2 to a NULL value results in 2. SQL
databases instead "annihilate" with null, so NULL + 2 = NULL.
Modulepersistent-test-2.13.1.3Haskell2010
UpsertTest
- 2 types
- 1 value
- Packagepersistent-test-2.13.1.3
- Exports3
- LanguageHaskell2010
- LicenceMIT
- SourceUpsertTest.hs
UPSERT on SQL databses does an "update-or-insert," which preserves
all prior values, including keys. MongoDB does not preserve the
identifier, so the entity key changes on an upsert.