Fix famUpdate
doc
This commit is contained in:
parent
b42710839a
commit
9f41f36d02
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue