Fix famUpdate doc

This commit is contained in:
Andrea Condoluci 2020-04-01 16:01:59 +02:00
parent b42710839a
commit 9f41f36d02

View file

@ -1055,7 +1055,7 @@ fetch q = findOne q >>= maybe (liftIO $ throwIO $ DocNotFound $ selection q) ret
data FindAndModifyOpts data FindAndModifyOpts
= FamRemove Bool -- ^ remove the selected document when the boolean is @True@ = FamRemove Bool -- ^ remove the selected document when the boolean is @True@
| FamUpdate | 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 , famNew :: Bool -- ^ return the document with the modifications made on the update
, famUpsert :: Bool -- ^ create a new document if no documents match the query , famUpsert :: Bool -- ^ create a new document if no documents match the query
} }