This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 11684 base | |
2 4409 bytestring | |
3 3980 containers | |
4 3379 text | |
5 3099 mtl | |
6 2565 transformers | |
7 2019 directory | |
8 1791 filepath | |
9 1717 QuickCheck | |
10 1702 time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
r.table("test").get("idValue").update(function(doc) { | |
return r.branch( | |
doc("lastUpdate").eq(newDoc["lastUpdate"]), | |
newDoc.merge({lastUpdate: r.now()}), | |
r.error("Wrong version") | |
) | |
}) |