From 9f41f36d02f44da372dd78665190d64c5774d802 Mon Sep 17 00:00:00 2001 From: Andrea Condoluci Date: Wed, 1 Apr 2020 16:01:59 +0200 Subject: [PATCH] Fix `famUpdate` doc --- Database/MongoDB/Query.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database/MongoDB/Query.hs b/Database/MongoDB/Query.hs index 5fc2eec..80a28d2 100644 --- a/Database/MongoDB/Query.hs +++ b/Database/MongoDB/Query.hs @@ -1055,7 +1055,7 @@ fetch q = findOne q >>= maybe (liftIO $ throwIO $ DocNotFound $ selection q) ret data FindAndModifyOpts = FamRemove Bool -- ^ remove the selected document when the boolean is @True@ | FamUpdate - { famUpdate :: Document -- ^ update the the selected document + { famUpdate :: Document -- ^ the update instructions, or a replacement document , famNew :: Bool -- ^ return the document with the modifications made on the update , famUpsert :: Bool -- ^ create a new document if no documents match the query }